~ubuntu-branches/ubuntu/precise/whois/precise

1 by Marco d'Itri
* Updated data for -H option.
1
#!/usr/bin/make -f
2
SHELL+= -e
3
5.4.4 by Marco d'Itri
* Recursion disabled when the query string contains spaces, because
4
DPKG_EXPORT_BUILDFLAGS = 1
5
-include /usr/share/dpkg/buildflags.mk
6
1 by Marco d'Itri
* Updated data for -H option.
7
#export DH_VERBOSE=1
8
1.1.2 by Marco d'Itri
* Fixed switch -d. (Closes: #287487)
9
D := $(shell pwd)/debian/whois
10
5.3.1 by Marco d'Itri
* Added new IPv4 allocations.
11
VERSION := $(shell dpkg-parsechangelog | sed -n 's/ubuntu[0-9]*$$//; s/\+.*$$//; /^Version/s/.* //p')
2.1.1 by Marco d'Itri
* Added new ASN allocations. (Closes: #341560)
12
1 by Marco d'Itri
* Updated data for -H option.
13
build:
1.1.2 by Marco d'Itri
* Fixed switch -d. (Closes: #287487)
14
	dh_testdir
5.2.3 by Marco d'Itri
* Added optional support for automatically transcoding the output of
15
	$(MAKE) CONFIG_FILE="/etc/whois.conf" HAVE_LIBIDN=1 HAVE_ICONV=1
2.1.6 by Marco d'Itri
* Added the .coop, .mobi TLD and e164.arpa servers.
16
	cd po && $(MAKE) whois.pot
1.1.2 by Marco d'Itri
* Fixed switch -d. (Closes: #287487)
17
	touch $@
1 by Marco d'Itri
* Updated data for -H option.
18
19
clean:
1.1.2 by Marco d'Itri
* Fixed switch -d. (Closes: #287487)
20
	dh_testdir
1 by Marco d'Itri
* Updated data for -H option.
21
	-rm -f build
3.1.4 by Marco d'Itri
* Fixed myinet_aton to not reject CIDR networks.
22
	$(MAKE) distclean
1.1.2 by Marco d'Itri
* Fixed switch -d. (Closes: #287487)
23
	dh_clean
1 by Marco d'Itri
* Updated data for -H option.
24
25
binary-arch: checkroot build
1.1.2 by Marco d'Itri
* Fixed switch -d. (Closes: #287487)
26
	dh_testdir
27
	dh_clean
1 by Marco d'Itri
* Updated data for -H option.
28
2.1.1 by Marco d'Itri
* Added new ASN allocations. (Closes: #341560)
29
	# sanity check
30
	egrep -q '^#define VERSION "$(VERSION)"$$' config.h
31
17 by Marco d'Itri
* Added new IPv4 allocations.
32
	dh_installdirs usr/bin
33
	install whois mkpasswd $D/usr/bin/
34
	cd po && $(MAKE) install BASEDIR=$D
35
	dh_installman whois.1 mkpasswd.1
1.1.1 by Marco d'Itri
Added new IPv6 and ASN allocations.
36
	dh_installdocs README
17 by Marco d'Itri
* Added new IPv4 allocations.
37
	dh_installchangelogs 
38
	dh_strip
39
	dh_compress
40
	dh_fixperms
41
	dh_shlibdeps
42
	dh_installdeb
43
	dh_gencontrol
44
	dh_md5sums
45
	dh_builddeb
1 by Marco d'Itri
* Updated data for -H option.
46
47
binary: binary-arch
48
2.1.6 by Marco d'Itri
* Added the .coop, .mobi TLD and e164.arpa servers.
49
binary-indep:
50
5.4.4 by Marco d'Itri
* Recursion disabled when the query string contains spaces, because
51
build-arch: build
52
build-indep: build
53
1 by Marco d'Itri
* Updated data for -H option.
54
checkroot:
55
	test root = "`whoami`"
56
5.4.4 by Marco d'Itri
* Recursion disabled when the query string contains spaces, because
57
.PHONY: binary binary-arch binary-indep build build-arch build-indep clean checkroot