This commit is contained in:
SamR1
2017-12-25 21:17:47 +01:00
parent b1fca3ab34
commit 4f70e5404f
4 changed files with 61 additions and 1 deletions

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
include Makefile.config
-include Makefile.custom.config
.SILENT:
make-p:
# Launch all P targets in parallel and exit as soon as one exits.
set -m; (for p in $(P); do ($(MAKE) $$p || kill 0)& done; wait)
serve-python:
$(FLASK) run --with-threads -h $(HOST) -p $(API_PORT)
serve-react:
$(NPM) start
serve:
$(MAKE) P="serve-react serve-python" make-p