Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 include /usr/share/dpkg/pkg-info.mk
5
6 export PYBUILD_NAME = dhros
7 export PYBUILD_DESTDIR = debian/dh-ros
8 export PYBUILD_INSTALL_DIR = /usr/share/dh-ros
9
10 ifeq ($(shell grep '^version *= *$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*$$//')$$' setup.cfg),)
11 $(error version in setup.py does not match the one in debian/changelog)
12 endif
13
14 %:
15 dh $@ --buildsystem=pybuild
16
17 execute_after_dh_auto_install:
18 find $(PYBUILD_DESTDIR) -name ".pytest_cache" -print0 | xargs -r0 rm -r
19 mv $(PYBUILD_DESTDIR)/usr/bin/rosbuilder $(PYBUILD_DESTDIR)$(PYBUILD_INSTALL_DIR)
20
21 execute_after_dh_python3:
22 # Once debhelper has collected the dependencies, we no longer need this
23 rm -r $(PYBUILD_DESTDIR)$(PYBUILD_INSTALL_DIR)/*.dist-info
24
25 execute_before_dh_installman: rosbuilder.1
26
27 %.1: %.1.in
28 sed -e 's/@VERSION@/$(DEB_VERSION_UPSTREAM)/g' $< >$@