forked from sebastien/cuisine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 694 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
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 tag $(VERSION) ; true
git push --tags ; true
python setup.py clean sdist register upload
clean:
@rm -rf api/ build dist MANIFEST ; true
check:
pychecker $(SOURCES)
doc: $(DOC_SOURCES)
#sphinx-build -b html docs api
sdoc --markup=texto src/cuisine.py api/cuisine-api.html
MANIFEST: $(MANIFEST)
echo $(MANIFEST) | xargs -n1 | sort | uniq > $@
#EOF