diff options
Diffstat (limited to 'cockpit/Makefile')
| -rw-r--r-- | cockpit/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cockpit/Makefile b/cockpit/Makefile new file mode 100644 index 0000000..ca7194a --- /dev/null +++ b/cockpit/Makefile @@ -0,0 +1,18 @@ +dist/index.html: cockpit.html cockpit.css dist/main.js + echo | pandoc --template cockpit.html --embed-resources --standalone > $@ + +dist/main.js: $(wildcard js/*.js) + $(MAKE) dev + +.PHONY: mock dev prod +mock: + npm run build:mock + $(MAKE) + +dev: + npm run build:dev + $(MAKE) + +prod: + npm run build + $(MAKE) |
