FitTrackee/Makefile

23 lines
414 B
Makefile
Raw Normal View History

2017-12-25 21:17:47 +01:00
include Makefile.config
-include Makefile.custom.config
.SILENT:
2018-01-01 16:59:46 +01:00
init-db:
$(FLASK) init_db
2017-12-25 21:17:47 +01:00
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
2018-01-01 11:10:39 +01:00
test-python:
$(FLASK) test