-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 731 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (31 loc) · 731 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
PYCMD=python setup.py
GH_PAGES_SOURCES=dbtools docs VERSION.txt README.md Makefile
all:
$(PYCMD) bdist
source:
$(PYCMD) sdist
upload:
$(PYCMD) sdist upload
install:
$(PYCMD) install
clean:
$(PYCMD) clean --all
rm -rf dist
rm -f MANIFEST
rm -f README
rm -f *.pyc
test:
nosetests
gh-pages:
make clean || true
git checkout gh-pages
rm -rf _sources _static _modules
git checkout master $(GH_PAGES_SOURCES)
git reset HEAD
pandoc --from markdown --to rst -o README.rst README.md
make -C docs html
mv -fv docs/_build/html/* .
rm -rf $(GH_PAGES_SOURCES) README.rst
git add -A
git ci -m "Generated gh-pages for `git log master -1 --pretty=short --abbrev-commit`" && git push origin gh-pages
git checkout master