File: rules

package info (click to toggle)
coinmp 1.8.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,816 kB
  • sloc: sh: 11,217; cpp: 2,691; ansic: 1,542; makefile: 161
file content (32 lines) | stat: -rwxr-xr-x 930 bytes parent folder | download
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
28
29
30
31
32
#!/usr/bin/make -f
#export DH_VERBOSE=1

# Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_clean:
	find CoinMP/test -name "*.mps.gz" -exec rm {} \;
	dh_auto_clean

override_dh_autoreconf:
	echo "Do not reconfigure"

override_dh_auto_configure:
	export COIN_SKIP_PROJECTS="Sample"; \
	dh_auto_configure -- --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--enable-dependency-linking \
		$(foreach p, coinutils osi clp cgl cbc, --with-$(p)-incdir=/usr/include/coin) \
		$(foreach p, coinutils osi clp cgl cbc, --with-$(p)-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)) \
		$(foreach p, coinutils osi clp cgl cbc, --with-$(p)-lib=$(shell pkg-config --libs $(p) | cut -d" " -f1))

override_dh_installexamples:
	dh_installexamples
	rm -f debian/*/usr/share/doc/coinor-libcoinmp-dev/examples/Makefile

get-orig-source:
	. debian/get-orig-source