Add Makefile

This commit is contained in:
Jan Dittberner 2022-08-17 18:47:26 +02:00
parent 5cbcbefac6
commit 0ebdbbb4da

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
RESULT = static/css/cacert.bundle.css static/js/cacert.bundle.js
SOURCES = $(shell find frontend_src -type f) webpack.config.js package.json
YARN = /usr/bin/yarnpkg
all: $(RESULT)
$(RESULT): $(SOURCES)
$(YARN)
$(YARN) run build
clean:
rm -rf static
distclean: clean
rm -rf node_modules
.PHONY: all clean distclean