blob: c9b9bb07d6fbd5f38fd75e3572f344b197816ef5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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
scripts/update-env-srcs src/ mock
$(MAKE) $(SITES)
dev:
npm run build:dev
scripts/update-env-srcs src/ prod
$(MAKE) $(SITES)
prod:
npm run build
scripts/update-env-srcs src/ prod
$(MAKE) $(SITES)
|