File: rules

package info (click to toggle)
gadap 2.0-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 768 kB
  • sloc: cpp: 2,135; sh: 950; makefile: 26
file content (20 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DH_VERBOSE=1

DESTDIR:=`pwd`/debian/tmp/
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) -fPIE -fPIC

# The magic debhelper  rule
%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- CXXFLAGS="$(CXXFLAGS)"

override_dh_auto_install:
	dh_auto_install
	rm debian/libgadap-dev/usr/bin/test
	dh_install -p libgadap-dev gadap.pc $(LIBDIR)/pkgconfig