File: rules

package info (click to toggle)
spampd 2.62-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,072 kB
  • sloc: perl: 7,117; sh: 240; makefile: 18
file content (30 lines) | stat: -rwxr-xr-x 688 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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/quilt/quilt.make

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

override_dh_auto_build:
	dh_auto_build
	pod2man --section=8 --center="Spam Proxy Daemon" spampd.pl > spampd.8
	gzip -9 < spampd.8 > spampd.8.gz

	pod2html --outfile spampd.html --header --norecurse --backlink --infile spampd.pl
	rm -f pod2htm?.tmp

override_dh_clean:
	-rm -f spampd.8 spampd.8.gz spampd.html
	dh_clean

%:
	dh $@