File: rules

package info (click to toggle)
libcxx-serial 1.2.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 884 kB
  • sloc: cpp: 3,120; makefile: 75; xml: 17; ansic: 17; python: 9
file content (27 lines) | stat: -rwxr-xr-x 645 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
22
23
24
25
26
27
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	ENABLE_TESTS := ON
else
	ENABLE_TESTS := OFF
endif

%:
	echo foobar
	echo DEB_BUILD_PROFILES: $(DEB_BUILD_PROFILES)
	echo ENABLE_TESTS: $(ENABLE_TESTS)
	dh $@  --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
	    -DCMAKE_VERBOSE_MAKEFILE=ON \
	    -DCATKIN_ENABLE_TESTING=$(ENABLE_TESTS)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make -C obj-$(DEB_HOST_GNU_TYPE) \
	    run_tests_cxx-serial_gtest_cxx-serial-test
endif