aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-08-03 14:31:25 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-08-03 14:31:25 +0200
commit6839831af54cd9302119bcc3bffafe10475958d4 (patch)
tree12a1c1fbd864e9579cb9c3a09d4bf4686a280b73 /Makefile
parentfccb70cbd876785f6833dfe6efc10ec9e445556d (diff)
downloadbycs-sol-6839831af54cd9302119bcc3bffafe10475958d4.tar.gz
bycs-sol-6839831af54cd9302119bcc3bffafe10475958d4.zip
refactor project structure
* merge sites into single project root * fix name of mass-graduation site * enable typescript support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
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)