diff options
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/common.mk b/common.mk new file mode 100644 index 0000000..47a3fe9 --- /dev/null +++ b/common.mk @@ -0,0 +1,18 @@ +dist/index.html: index.html index.css dist/main.js + echo | pandoc --template $< --embed-resources --standalone > $@ + +dist/main.js: $(wildcard js/*.js) + npm run build:dev + +.PHONY: mock dev prod +mock: + npm run build:mock + $(MAKE) dist/index.html + +dev: + npm run build:dev + $(MAKE) dist/index.html + +prod: + npm run build + $(MAKE) dist/index.html |
