forked from coldnight/twqq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 843 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
PACKAGE = windmvc/
DOCPATH = doc
PYTHONBIN = python
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " doc to generate document from source code"
@echo " html to generate html from document"
@echo " htmldoc to generate html document from srouce code"
@echo " dist to upload package to pypi server"
@echo " clean to clean temp file"
doc:
rm -rf docs/*
sphinx-apidoc -F -o $(DOCPATH) $(PACKAGE)
html:
$(PYTHONBIN) setup.py install
cd docs && make html && cd ..
htmldoc:
$(PYTHONBIN) setup.py install
rm -rf docs/*
sphinx-apidoc -F -o $(DOCPATH) $(PACKAGE)
cd docs && make html && cd ..
dist:
$(PYTHONBIN) setup.py register sdist upload && rm -rf *.egg_info build dist
clean:
find ./ -name '*.py[co]' -exec rm -f {} \;
rm -f check.jpg wait lock
rm -rf *.egg-info build/ dist/