File: rules

package info (click to toggle)
gnarwl 3.6.dfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 856 kB
  • ctags: 288
  • sloc: ansic: 1,163; makefile: 119; sh: 70; php: 44
file content (22 lines) | stat: -rwxr-xr-x 599 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 $@

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.."

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