aboutsummaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-06-13 13:22:31 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-06-13 13:23:24 +0200
commit500e267852f98c1ad0f68adb942e7cf82e54d650 (patch)
tree5f2b1055cca66fe1d5b9c1a589987f1b16457a36 /common.mk
parent7c58eeacf121cebb42818aa059c99c706e2d25e1 (diff)
downloadbycs-sol-500e267852f98c1ad0f68adb942e7cf82e54d650.tar.gz
bycs-sol-500e267852f98c1ad0f68adb942e7cf82e54d650.zip
generalize Makefile
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk18
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