From 6839831af54cd9302119bcc3bffafe10475958d4 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 3 Aug 2026 14:31:25 +0200 Subject: refactor project structure * merge sites into single project root * fix name of mass-graduation site * enable typescript support --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.3