2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
3
include /usr/share/quilt/quilt.make
5
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatability version to use.
8
# This has to be exported to make some magic below work.
11
# These are used for cross-compiling and for saving the configure script
12
# from having to guess our platform (since we know it already)
13
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11
16
configure: configure-stamp
16
build: configure-stamp build-stamp
19
cp debian/config.h config.h
20
cp debian/config.make config.make
17
configure-stamp: $(QUILT_STAMPFN)
18
[ ! -f config.make ] || mv config.make debian/config.make.bk
19
cp -f debian/config.make config.make
20
[ ! -f config.h ] || mv config.h debian/config.h.bk
21
cp -f debian/config.h config.h
26
build-stamp: configure-stamp
28
$(MAKE) PROGS="ifconfig arp netstat route rarp slattach plipconfig \
29
nameif iptunnel ipmaddr mii-tool"
27
35
rm -f build-stamp configure-stamp
36
[ ! -f Makefile ] || $(MAKE) clobber
37
[ ! -f debian/config.h.bk ] || \
38
mv debian/config.h.bk config.h
39
[ ! -f debian/config.make.bk ] || \
40
mv debian/config.make.bk config.make
43
MANPAGES = arp.8 ethers.5 ifconfig.8 mii-tool.8 nameif.8 netstat.8 \
44
plipconfig.8 rarp.8 route.8 slattach.8
36
$(MAKE) update BASEDIR=`pwd`/debian/tmp
37
mv debian/tmp/sbin/arp debian/tmp/usr/sbin/arp
38
# we don't want man pages for domainname and friends... (yet)
39
rm -rf debian/tmp/usr/share/man/*/man1/ debian/tmp/usr/share/man/man1/
40
# we don't install local manpages until policy is clear
41
rm -rf debian/tmp/usr/share/man/*_*/
44
# Build architecture-independent files here.
50
dh_installdirs bin sbin usr/sbin
52
$(MAKE) -C po install BASEDIR=$(CURDIR)/debian/net-tools
53
dh_installman --language=de \
54
$(wildcard $(addprefix man/de_DE/,$(MANPAGES)))
55
dh_installman --language=C \
56
$(wildcard $(addprefix man/en_US/,$(MANPAGES)))
57
dh_installman --language=fr \
58
$(wildcard $(addprefix man/fr_FR/,$(MANPAGES)))
59
dh_installman --language=pt_BR \
60
$(wildcard $(addprefix man/pt_BR/,$(MANPAGES)))
45
62
binary-indep: build install
46
# We have nothing to do by default.
48
# Build architecture-dependent files here.
49
64
binary-arch: build install
68
dh_installdocs README README.ipv6 TODO
73
binary: binary-indep binary-arch
74
.PHONY: build clean binary-indep binary-arch binary install
79
binary: binary-arch binary-indep
80
.PHONY: build clean binary-indep binary-arch binary install install-indep \