aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d89e3a632c07a782f45583329473c43f40eb2e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)