File: rules

package info (click to toggle)
libisofs 1.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,772 kB
  • ctags: 3,104
  • sloc: ansic: 40,365; sh: 10,803; makefile: 137
file content (33 lines) | stat: -rwxr-xr-x 746 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
30
31
32
33
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf))
	CFLAGS=-g -O0
endif

# To enable PIE and ld -z "now".
# Experimental 5 Feb 2016 to silence lintian hardening-no-pie and
# hardening-no-bindnow
# https://wiki.debian.org/HardeningWalkthrough#Selecting_security_hardening_options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	AUTOMAKE='automake --foreign' dh_autoreconf

override_dh_installdocs:
	dh_installdocs

override_dh_strip:
	dh_strip --dbg-package=libisofs-dbg

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_clean:
	$(RM) -f doc/doxygen.conf 
	$(RM) -r doc/html
	if [ -f Makefile ]; then $(MAKE) clean; fi
	dh_clean