-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (34 loc) · 949 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SHELL := /bin/bash
# target: all - Default target. Does nothing.
all:
@echo "Hello $(LOGNAME), nothing to do by default."
@echo "Try 'make help'"
help:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
install:
poetry install
activate:
poetry shell
run:
python app.py
migrate:
flask db upgrade
initdb:
flask db_init
droptestdb:
dropdb stats-test ; createdb stats-test
inittestdb: droptestdb initdb migrate
@echo "Done"
superuser:
flask create_admin --login $(LOGNAME) --password password --email $(LOGNAME)@local.host
update:
contrib/update.sh
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
doc:
rm -Rf docs/_build
sphinx-build docs/ docs/_build/html
multidoc:
rm -Rf docs/_build
sphinx-multiversion docs/ docs/_build/html