File: rules

package info (click to toggle)
ros-dynamic-reconfigure 1.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 524 kB
  • sloc: python: 1,752; cpp: 657; xml: 35; ansic: 18; makefile: 15; sh: 2
file content (21 lines) | stat: -rwxr-xr-x 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# Needed for unit tests
export ROS_HOME=$(CURDIR)/build/ros
export ROS_IP=127.0.0.1

%:
	dh $@ --buildsystem=cmake

execute_after_dh_auto_install:
	rm debian/tmp/usr/share/dynamic_reconfigure/cmake/dynamic_reconfigure-extras.cmake.em
	sed -i -e '1s%^#!.*%#!/usr/bin/python3%' \
		debian/tmp/usr/share/dynamic_reconfigure/cmake/gendeps \
		debian/tmp/usr/share/dynamic_reconfigure/cmake/dynamic_reconfigure/parameter_generator.py

override_dh_auto_test:
	make -C obj-$(DEB_HOST_GNU_TYPE) run_tests
ifeq (,$(filter $(DEB_BUILD_ARCH),alpha armel armhf mipsel s390x hppa powerpc ppc64 sparc64 hurd-i386))
	catkin_test_results
endif