File: rules

package info (click to toggle)
altermime 0.3.10-9
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,208 kB
  • ctags: 1,053
  • sloc: ansic: 15,437; makefile: 82; sh: 15
file content (30 lines) | stat: -rwxr-xr-x 725 bytes parent folder | download | duplicates (3)
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
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# many truncated snprintf, difficult to fix without rewrite #853309
export DEB_CFLAGS_MAINT_APPEND=-Wno-error=format-truncation

include /usr/share/dpkg/architecture.mk
ifeq ($(origin CC),default)
CC := $(DEB_HOST_GNU_TYPE)-gcc
endif

%:
	dh $@

override_dh_auto_configure:
	linuxdoc --backend=html debian/docs/postfix-altermime-howto.sgml
	mkdir -p debian/docs/html
	mv -f postfix-altermime-howto*.html debian/docs/html
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build -- CC=$(CC)

override_dh_auto_install:
	dh_auto_install --destdir=debian/altermime/usr/bin

override_dh_auto_clean:
	rm -rf debian/docs/html
	dh_auto_clean