Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3
4 # Hardening
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 DPKG_EXPORT_BUILDFLAGS = 1
7 include /usr/share/dpkg/buildflags.mk
8
9 %:
10 dh $@
11
12 override_dh_auto_clean:
13 find CoinMP/test -name "*.mps.gz" -exec rm {} \;
14 dh_auto_clean
15
16 override_dh_autoreconf:
17 echo "Do not reconfigure"
18
19 override_dh_auto_configure:
20 export COIN_SKIP_PROJECTS="Sample"; \
21 dh_auto_configure -- --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
22 --enable-dependency-linking \
23 $(foreach p, coinutils osi clp cgl cbc, --with-$(p)-incdir=/usr/include/coin) \
24 $(foreach p, coinutils osi clp cgl cbc, --with-$(p)-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)) \
25 $(foreach p, coinutils osi clp cgl cbc, --with-$(p)-lib=$(shell pkg-config --libs $(p) | cut -d" " -f1))
26
27 override_dh_installexamples:
28 dh_installexamples
29 rm -f debian/*/usr/share/doc/coinor-libcoinmp-dev/examples/Makefile
30
31 get-orig-source:
32 . debian/get-orig-source