fix lintian whines
[debian/ipip] / debian / rules
1 #!/usr/bin/make -f
2 # rules file for the ipip package, requires debhelper
3 # copyright 1998 by Bdale Garbee, distributed under the terms of the GPL
4
5 # export DH_VERBOSE=1
6
7 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
8 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
9 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
10 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
11
12 build: build-arch build-indep
13 build-arch: build-stamp
14 build-indep: build-stamp
15 build-stamp:
16         dh_testdir
17         $(MAKE)
18         touch build-stamp
19
20 clean:
21         dh_testdir
22         dh_testroot
23         rm -f build-stamp
24         $(MAKE) clean
25         dh_clean
26
27 # Build architecture-independent files here.
28 binary-indep: build
29
30 # Build architecture-dependent files here.
31 binary-arch: build
32         dh_testdir
33         dh_testroot
34         dh_clean -k
35         dh_installdirs
36
37         cp ipip debian/ipip/usr/sbin
38         cp debian/ipip.config debian/ipip/etc/ipip/config
39         cp debian/ipip.routes debian/ipip/etc/ipip/routes
40
41         dh_installdocs
42         dh_installexamples samples/*
43         dh_installmenu
44         dh_installinit
45         dh_installcron
46         dh_installman ipip.1
47         dh_installchangelogs
48         dh_strip
49         dh_compress
50         dh_fixperms
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 source diff:                                                                  
58         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary