File: rules

package info (click to toggle)
fastforward 1%3A0.51-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 860 kB
  • sloc: ansic: 6,055; makefile: 483; sh: 160
file content (28 lines) | stat: -rwxr-xr-x 1,002 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/default.mk
export CFLAGS  += $(shell getconf LFS_CFLAGS)
export LDFLAGS += $(shell getconf LFS_LDFLAGS)

%:
	dh $@

override_dh_auto_configure:
	echo $(CC) $(CFLAGS) $(CPPFLAGS) > conf-cc
	echo $(CC) $(LDFLAGS)            > conf-ld
	echo /var/lib/qmail              > conf-qmail

# Do not use upstream build system, install via debhelper.
override_dh_auto_install:
override_dh_auto_test:

execute_after_dh_auto_clean:
	$(RM) *.o *.a
	$(RM) auto-str fastforward newaliases newinclude printforward printmaillist setforward setmaillist
	$(RM) auto-ccld.sh auto_qmail.c compile fastforward.0 find-systype fork.h hassgact.h haswaitp.h load make-compile make-load make-makelib makelib newaliases.0 newinclude.0 printforward.0 printmaillist.0 qmail-newaliases.1 setforward.0 setmaillist.0 systype uint32.h
	$(RM) conf-cc conf-ld conf-qmail

override_dh_installman:
	cp -f newaliases.1 qmail-newaliases.1
	dh_installman