-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 1014 Bytes
/
Makefile
File metadata and controls
50 lines (35 loc) · 1014 Bytes
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
#
# Project 7: Pull Google calendar events
##############
# Virtual environment
# Many recipes need to be run in the virtual environment,
# so run them as $(INVENV) command
INVENV = . env/bin/activate ;
install: env
env:
python3 -m venv env
$(INVENV) pip3 install -r requirements.txt
# 'make run' runs Flask's built-in test server,
# with debugging turned on unless it is unset in CONFIG.py
#
run: env
($(INVENV) cd meetings; python3 flask_main.py) || true
test: env
$(INVENV) cd meetings; nosetests
##
## Preserve virtual environment for git repository
## to duplicate it on other targets
##
dist: env
$(INVENV) pip freeze >requirements.txt
# 'clean' and 'veryclean' are typically used before checking
# things into git. 'clean' should leave the project ready to
# run, while 'veryclean' may leave project in a state that
# requires re-running installation and configuration steps
#
clean:
rm -f *.pyc */*.pyc
rm -rf __pycache__ */__pycache__
veryclean:
make clean
rm -rf env