forked from ros-infrastructure/rosdep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (36 loc) · 1.31 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
.PHONY: all setup clean_dist distro clean install deb_dist upload-packages upload-building upload testsetup test
NAME='rosdep'
VERSION=`python setup.py -V`
USERNAME ?= $(shell whoami)
OUTPUT_DIR=deb_dist
all:
echo "noop for debbuild"
setup:
echo "building version ${VERSION}"
clean_dist:
-rm -f MANIFEST
-rm -rf dist
-rm -rf deb_dist
-rm -rf src/rosdep.egg-info
distro: setup clean_dist
python setup.py sdist
push: distro
python setup.py sdist register upload
scp dist/${NAME}-${VERSION}.tar.gz ${USERNAME}@ipr:/var/www/pr.willowgarage.com/html/downloads/${NAME}
clean: clean_dist
echo "clean"
install: distro
sudo checkinstall python setup.py install
deb_dist: distro
python setup.py --command-packages=stdeb.command sdist_dsc --workaround-548392=False bdist_deb
upload-packages: deb_dist
dput -u -c dput.cf all-shadow ${OUTPUT_DIR}/${NAME}_${VERSION}-1_amd64.changes
dput -u -c dput.cf all-shadow-fixed ${OUTPUT_DIR}/${NAME}_${VERSION}-1_amd64.changes
dput -u -c dput.cf all-ros ${OUTPUT_DIR}/${NAME}_${VERSION}-1_amd64.changes
upload-building: deb_dist
dput -u -c dput.cf all-building ${OUTPUT_DIR}/${NAME}_${VERSION}-1_amd64.changes
upload: upload-building upload-packages
testsetup:
echo "running rosdep tests"
test: testsetup
nosetests --with-coverage --cover-package=rosdep2 --with-xunit test