File: rules

package info (click to toggle)
libkdumpfile 0.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,800 kB
  • sloc: ansic: 34,639; sh: 3,853; python: 1,490; makefile: 755
file content (24 lines) | stat: -rwxr-xr-x 699 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

execute_after_dh_auto_build:
	make doxygen-doc

execute_after_dh_install:
	# remove examples. While we want to make sure they compile,
	# the binaries should not be shipped
	# list individually so we don't accidentally remove an actual
	# binary in the future
	rm debian/tmp/usr/bin/dumpattr
	rm debian/tmp/usr/bin/listxendoms
	rm debian/tmp/usr/bin/showxlat
	rmdir debian/tmp/usr/bin
	# we can't just pass `--disable-static` to dh_auto_configure
	# as those are needed to compile tests
	rm debian/tmp/usr/lib/*/lib*.a
	rm debian/tmp/usr/lib/*/lib*.la
	rm debian/tmp/usr/lib/python3.*/site-packages/*.la