-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (25 loc) · 799 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
.PHONY: clean install virtualenv-clean test doc
ACTIVATE = . bin/activate
all: test doc
virtualenv: lib/python2.7/site.py
distclean: virtualenv-clean clean
virtualenv-clean:
rm -rf bin include lib lib64 share .pipped build
clean:
find . \( -name \*\.pyc -o -name \*\.dot -o -name \*\.svg -o -name \*\.png \) -delete
hg clean
lib/python2.7/site.py:
virtualenv --python=python2.7 --no-site-packages .
freeze:
pip freeze -E . > requirements.txt
.pipped: requirements.txt
$(ACTIVATE) && pip install -E . -r requirements.txt
touch -r $^ -m $@
install: virtualenv .pipped
test: install
$(ACTIVATE) && python -m testtools.run discover
#$(ACTIVATE) && cd doc && $(MAKE) doctest
edit:
$(EDITOR) *.py tests/*.py tests/*.yaml rules/*.yaml
doc: install
$(ACTIVATE) && cd doc && $(MAKE)