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)
