/
Makefile
43 lines (31 loc) · 902 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
SOURCES = $(wildcard src/*.py)
DOC_SOURCES = $(wildcard docs/* docs/*/*)
MANIFEST = $(SOURCES) $(wildcard *.py api/*.* AUTHORS* README* LICENSE*)
VERSION = `grep VERSION src/cuisine.py | cut -d '=' -f2 | xargs echo`
PRODUCT = MANIFEST doc
.PHONY: all doc clean check
all: $(PRODUCT)
release: $(PRODUCT)
git commit -a -m "Release $(VERSION)"
git tag $(VERSION) ; true
git push --all ; true
python setup.py clean sdist register upload
test:
python tests/test-all.py
clean:
@rm -rf api/ build dist MANIFEST ; true
vagrant destroy -f
check:
pychecker -100 $(SOURCES)
doc: $(DOC_SOURCES)
#sphinx-build -b html docs api
sdoc --markup=texto src/cuisine.py api/cuisine-api.html
test:
python tests/all.py
up:
vagrant up --no-provision --provider virtualbox
provision:
vagrant provision
MANIFEST: $(MANIFEST)
echo $(MANIFEST) | xargs -n1 | sort | uniq > $@
#EOF