-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (35 loc) · 1.16 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
.PHONY: all setup clean_dist distro clean install upload push
NAME=rospkg
VERSION=`./setup.py --version`
OUTPUT_DIR=rpm_dist
all:
echo "noop for rpmbuild"
setup:
echo "building version ${VERSION}"
clean_dist:
-rm -f MANIFEST
-rm -rf dist
-rm -rf rpm_dist
distro: setup clean_dist
python setup.py sdist
push: distro
python setup.py sdist register upload
scp dist/${NAME}-${VERSION}.tar.gz ipr:/var/www/pr.willowgarage.com/html/downloads/${NAME}
clean: clean_dist
echo "clean"
install: distro
sudo checkinstall python setup.py install
rpm_dist:
# need to convert unstable to each distro and repeat
python setup.py --command-packages=stdeb.command bdist_rpm
upload-packages: rpm_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: rpm_dist
dput -u -c dput.cf all-building ${OUTPUT_DIR}/${NAME}_${VERSION}-1_amd64.changes
upload: upload-building upload-packages
testsetup:
echo "running ${NAME} tests"
test: testsetup
cd test && nosetests