File: rules

package info (click to toggle)
adns 1.6.0-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,688 kB
  • sloc: ansic: 7,977; sh: 499; makefile: 233; perl: 14
file content (24 lines) | stat: -rwxr-xr-x 657 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DH_OPTIONS += --dbg-package=libadns1-dbg

export XCFLAGS=	$(shell dpkg-buildflags --get CPPFLAGS) \
		$(shell dpkg-buildflags --get CFLAGS)
export XLDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f regress/output-*
	rm -f debian/*.1

override_dh_auto_build:
	dh_auto_build
override_dh_auto_install:
	$(MAKE) install prefix=`pwd`/debian/tmp/usr
	for i in `ls debian/tmp/usr/bin/`; do \
		LD_LIBRARY_PATH=debian/tmp/usr/lib/ help2man -N -n "Asynchronous-capable DNS client utilities" debian/tmp/usr/bin/$$i > debian/$$i.1; \
	done