diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d89e3a6 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +HTML := cockpit.html mass-graduation.html admin-tools.html +SITES := $(addprefix dist/,$(HTML)) +JS := $(SITES:.html=.js) + +dist/%.html: %.html %.css dist/%.js + echo | pandoc --template $< --embed-resources --standalone > $@ + +dist/%.js: $(wildcard src/*.js) + npm run build:dev + +.PHONY: mock dev prod +mock: + npm run build:mock + $(MAKE) $(SITES) + +dev: + npm run build:dev + $(MAKE) $(SITES) + +prod: + npm run build + $(MAKE) $(SITES) |
