Debian Codegraph @

debian/rules

raw symbols SCIP
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_auto_configure:
16 dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -DBUILD_TESTING=ON
17
18 override_dh_makeshlibs: $(pkgs_lib:=-makeshlibs)
19 dh_makeshlibs --remaining-packages
20 $(pkgs_lib:=-makeshlibs): %-makeshlibs:
21 dh_makeshlibs -p$* '-V$* (>= $(DEB_VERSION_EPOCH_UPSTREAM)), $(ABIVirtualPackage)'
22
23 override_dh_gencontrol: $(pkgs_lib:=-gencontrol)
24 dh_gencontrol --remaining-packages
25 $(pkgs_lib:=-gencontrol): %-gencontrol:
26 dh_gencontrol -p$* -- -VABI:VirtualPackage=$(ABIVirtualPackage)
27
28 override_dh_auto_test:
29 - dh_auto_test --no-parallel