File: rules

package info (click to toggle)
libixp 0.6~20121202%2Bhg148-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 988 kB
  • sloc: ansic: 4,908; sh: 142; perl: 121; makefile: 111
file content (29 lines) | stat: -rwxr-xr-x 921 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export CFLAGS := -Wall -W $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -fcommon
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
ifeq "$(origin CC)" "default"
export CC := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)-gcc
endif

%:
	dh ${@}

override_dh_auto_build:
	$(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" DESTDIR="$(CURDIR)/debian/tmp" PREFIX=/usr ETC=/etc

override_dh_auto_install:
	# $(MAKE) doc
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr ETC=/etc LIBDIR="/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)" install

override_dh_installchangelogs:
	dh_installchangelogs NEWS

get-orig-source:
	@d=$$(readlink -e $(MAKEFILE_LIST)); \
	cd $${d%/*}/..; \
	debian/get-orig-source.sh $(CURDIR)

.PHONY: override_dh_auto_build override_dh_auto_install override_dh_installchangelogs get-orig-source