File: rules

package info (click to toggle)
unalz 0.65-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 956 kB
  • sloc: ansic: 6,892; cpp: 1,868; makefile: 83
file content (32 lines) | stat: -rwxr-xr-x 832 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildtools.mk
include /usr/share/dpkg/buildflags.mk

# we need this for the poorly written upstream makefile
CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LDFLAGS += -lz -lbz2

DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP=xsltproc -''-nonet

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- linux-utf8 CC="$(CC)" CPP="$(CXX)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"	
	$(XP) -o debian/unalz.1 $(DB2MAN) debian/unalz.dbk
	iconv -f EUC-KR -t UTF-8 < readme.txt > debian/readme.txt

override_dh_auto_install:

override_dh_auto_clean:
	rm -f debian/unalz.1
	rm -f debian/readme.txt
	dh_auto_clean

override_dh_installman:
	dh_installman debian/unalz.1