ebfcde666d1af711b408d7218392d11bcb19b883
[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 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 build: build-stamp
9 build-stamp:
10         dh_testdir
11
12         $(MAKE)
13
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp
20
21         -$(MAKE) clean
22
23         dh_clean
24
25 # Build architecture-independent files here.
26 binary-indep: build
27
28 # Build architecture-dependent files here.
29 binary-arch: build
30 #       dh_testversion
31         dh_testdir
32         dh_testroot
33         dh_clean -k
34         dh_installdirs
35
36         cp ipip debian/tmp/usr/sbin
37         cp debian/ipip.config debian/tmp/etc/ipip/config
38         cp debian/ipip.routes debian/tmp/etc/ipip/routes
39
40         dh_installdocs
41         dh_installexamples samples/*
42         dh_installmenu
43         dh_installinit
44         dh_installcron
45         dh_installmanpages
46 #       dh_undocumented
47         dh_installchangelogs
48         dh_strip
49         dh_compress
50         dh_fixperms
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54 #       dh_makeshlibs
55         dh_md5sums
56         dh_builddeb
57
58 source diff:                                                                  
59         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
60
61 binary: binary-indep binary-arch
62 .PHONY: build clean binary-indep binary-arch binary