File: rules

package info (click to toggle)
zerofree 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 96 kB
  • sloc: ansic: 141; makefile: 14
file content (18 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# activate all hardening flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/buildflags.mk

# define DEB_HOST_GNU_TYPE also when calling debian/rules manually
include /usr/share/dpkg/architecture.mk

# use correct cross-compiler by default
CC ?= $(DEB_HOST_GNU_TYPE)-gcc

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- CC=$(CC) CFLAGS="$(CFLAGS) $(LDFLAGS) $(CPPFLAGS)"
	docbook-to-man debian/zerofree.sgml > zerofree.8