From 500e267852f98c1ad0f68adb942e7cf82e54d650 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 13 Jun 2026 13:22:31 +0200 Subject: generalize Makefile --- common.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 common.mk (limited to 'common.mk') 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 -- cgit v1.2.3