forked from splintered-reality/py_trees
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
71 lines (58 loc) · 1.8 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#############################################################################################
# Build Documentation
#############################################################################################
NAME=`./setup.py --name`
VERSION=`./setup.py --version`
# LOCAL_DIR = $(shell pwd)/doc/html/
# REMOTE_DIR:=files@files.yujin.com:shared/documentation/${NAME}/${VERSION}
# REMOTE_SSH:=files@files.yujin.com
#docs:
# rosdoc_lite .
#
#details:
# @echo ${VERSION}
# @echo ${NAME}
#
#upload:
# ssh ${REMOTE_SSH} 'mkdir -p shared/documentation/${NAME}/${VERSION}; rm -f shared/documentation/${NAME}/latest; ln -sf ${VERSION} shared/documentation/${NAME}/latest'
# rsync --delete --recursive --links --verbose ${LOCAL_DIR} ${REMOTE_DIR}
help:
@echo "Local Build"
@echo " deps : install various build dependencies"
@echo " build : build the python package"
@echo " tests : run all of the nosetests"
@echo " clean : clean build/dist directories"
@echo "Packages"
@echo " pypi : upload the package to PyPI"
@echo " source_deb: source packaging (for ppas)"
@echo " deb : build the deb"
@echo "Documentation"
@echo " docs : buidl sphinx documentation"
docs:
PY_TREES_DISABLE_COLORS=1 sphinx-build -b html doc doc/html
build:
python setup.py build
deps:
echo "Downloading dependencies"
sudo apt-get install python-stdeb virtualenvwrapper
clean:
-rm -f MANIFEST
-rm -rf build dist
-rm -rf deb_dist
-rm -rf debian
-rm -rf ../*.build
-rm -rf *.tar.gz
-rm -rf *.egg-info
source_package:
python setup.py sdist
source_deb:
rm -rf dist deb_dist
python setup.py --command-packages=stdeb.command sdist_dsc
deb:
rm -rf dist deb_dist
python setup.py --command-packages=stdeb.command bdist_deb
pypi:
python setup.py sdist upload
tests:
python setup.py test
.PHONY: tests clean