File: rules

package info (click to toggle)
bsd-mailx 8.1.2-0.20180807cvs-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,036 kB
  • sloc: ansic: 7,013; makefile: 58; sh: 23
file content (22 lines) | stat: -rwxr-xr-x 546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export CFLAGS := -fPIC -Wall $(shell dpkg-buildflags --get CFLAGS) $(shell getconf LFS_CFLAGS)

ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  export CC = $(DEB_HOST_GNU_TYPE)-gcc
else
  export CC = gcc
endif

%:
	dh "$@"

override_dh_auto_clean:
	# Don't try to run make clean on unpatched version of Makefile
	! grep -q DEBIAN Makefile || dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs -a debian/EXT/ChangeLog