File: rules

package info (click to toggle)
ample 0.5.7-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 696 kB
  • sloc: ansic: 2,885; sh: 255; makefile: 203
file content (24 lines) | stat: -rwxr-xr-x 624 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-libwrap

override_dh_auto_install:
	dh_auto_install -- prefix=$(CURDIR)/debian/ample/usr \
                       sysconfdir=$(CURDIR)/debian/ample/etc/ample

override_dh_auto_clean:
	if [ -e Makefile ]; then make clean; fi
	rm -rf Makefile config.h config.log config.status docs/Makefile src/Makefile
	dh_auto_clean

# ample doesn't support dh_dwz on Debian Buster.
override_dh_dwz:
	@VER=$(shell cat /etc/os-release | grep -i buster); \
	[ "$$VER" ] || dh_dwz