diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-06-13 13:22:31 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-06-13 13:23:24 +0200 |
| commit | 500e267852f98c1ad0f68adb942e7cf82e54d650 (patch) | |
| tree | 5f2b1055cca66fe1d5b9c1a589987f1b16457a36 /common.mk | |
| parent | 7c58eeacf121cebb42818aa059c99c706e2d25e1 (diff) | |
| download | bycs-sol-500e267852f98c1ad0f68adb942e7cf82e54d650.tar.gz bycs-sol-500e267852f98c1ad0f68adb942e7cf82e54d650.zip | |
generalize Makefile
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 18 |
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 |
