File: rules

package info (click to toggle)
xenium 0.0.2%2Bds-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,152 kB
  • sloc: cpp: 12,299; makefile: 20
file content (27 lines) | stat: -rwxr-xr-x 669 bytes parent folder | download | duplicates (2)
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

DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE="RelWithDebug" # -DWITH_LIBCDS="1"

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C obj-$$(dpkg-architecture -qDEB_TARGET_GNU_TYPE) doc

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo "I: Executing benchmark - who knows how to execute it properly?"
	obj-$$(dpkg-architecture -qDEB_TARGET_GNU_TYPE)/benchmark || true
	echo "I: gtest"
	obj-$$(dpkg-architecture -qDEB_TARGET_GNU_TYPE)/gtest
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf doc/html/