File: rules

package info (click to toggle)
gnarwl 3.6.dfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: ansic: 1,191; makefile: 119; sh: 71; php: 44
file content (22 lines) | stat: -rwxr-xr-x 630 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

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ #--without autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
	    --with-docdir=/usr/share/doc/gnarwl \
	    --with-homedir=/var/lib/gnarwl

# Explicitly pass CFLAGS to make, they are not picked up from the env
# - enables hardening buildflags
override_dh_auto_build:
	make CFLAGS="$(CFLAGS) -I.. -fcommon"

override_dh_auto_install:
	dh_auto_install -- GZIP="-9n"
	rm $(CURDIR)/debian/gnarwl/usr/share/doc/gnarwl/INSTALL
	rm $(CURDIR)/debian/gnarwl/usr/share/doc/gnarwl/LICENSE
	rm $(CURDIR)/debian/gnarwl/usr/share/doc/gnarwl/HISTORY.gz