Add Makefile
This commit is contained in:
parent
5cbcbefac6
commit
0ebdbbb4da
1 changed files with 17 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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
|
Loading…
Reference in a new issue