Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 include /usr/share/dpkg/pkg-info.mk
6
7 # Starting with a library package $*, remove the ABI and append a
8 # -MAJOR.MINOR suffix without the third component of the upstream version.
9 ABIVirtualPackage = $(shell echo $* | sed 's/abi[0-9]\+//')-$(basename $(DEB_VERSION_UPSTREAM))
10 pkgs_lib := $(filter-out %-dev %-dbg %-bin %-data,$(filter lib%,$(shell dh_listpackages)))
11
12 %:
13 dh $@
14
15 override_dh_makeshlibs: $(pkgs_lib:=-makeshlibs)
16 dh_makeshlibs --remaining-packages
17 $(pkgs_lib:=-makeshlibs): %-makeshlibs:
18 dh_makeshlibs -p$* '-V$* (>= $(DEB_VERSION_EPOCH_UPSTREAM)), $(ABIVirtualPackage)'
19
20 override_dh_gencontrol: $(pkgs_lib:=-gencontrol)
21 dh_gencontrol --remaining-packages
22 $(pkgs_lib:=-gencontrol): %-gencontrol:
23 dh_gencontrol -p$* -- -VABI:VirtualPackage=$(ABIVirtualPackage)
24
25 override_dh_auto_test:
26 # Disable dh_auto_test at build time
27 -xvfb-run -- dh_auto_test --no-parallel