FitTrackee/Makefile
SamR1 a8faabddc3 API: use of PostgreSQL instead of MySQL
API: use of PostgreSQL instead of MySQL
2018-01-07 18:11:19 +01:00

35 lines
623 B
Makefile

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)
init-db:
$(FLASK) init_db
install: install-client install-python
install-client:
$(NPM) install
install-python:
test -d $(VENV) || virtualenv $(VENV) -p $(PYTHON_VERSION)
$(PIP) install -r $(REQUIREMENTS)
serve-python:
$(FLASK) run --with-threads -h $(HOST) -p $(API_PORT)
serve-react:
$(NPM) start
serve:
$(MAKE) P="serve-react serve-python" make-p
test-e2e:
$(NPM) test
test-python:
$(FLASK) test