]> git.meshlink.io Git - meshlink/blob - debian/rules
Generalized error handling functions
[meshlink] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatability version to use.
9 export DH_COMPAT=1
10
11 build: build-stamp
12 build-stamp:
13         dh_testdir
14
15         ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc
16         $(MAKE)
17
18         touch build-stamp
19
20 clean:
21         dh_testdir
22         dh_testroot
23         rm -f build-stamp
24
25         -$(MAKE) distclean
26
27         dh_clean
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k
33         dh_installdirs
34
35         $(MAKE) install DESTDIR=`pwd`/debian/tmp
36         mkdir -p `pwd`/debian/tmp/etc/tinc/example
37         cp doc/tinc.conf.sample `pwd`/debian/tmp/etc/tinc/example/tinc.conf
38         ln -s /usr/share/doc/tinc/README.Debian `pwd`/debian/tmp/etc/tinc/example/README
39         rm -f `pwd`/debian/tmp/usr/lib/tinc/libblowfish.so
40
41
42 # Build architecture-independent files here.
43 binary-indep: build install
44 # We have nothing to do by default.
45
46 # Build architecture-dependent files here.
47 binary-arch: build install
48 #       dh_testversion
49         dh_testdir
50         dh_testroot
51 #       dh_installdebconf       
52         dh_installdocs
53         dh_installexamples
54 #       dh_installmenu
55 #       dh_installemacsen
56 #       dh_installpam
57         dh_installinit
58 #       dh_installcron
59         dh_installmanpages
60         dh_installinfo
61 #       dh_undocumented
62         dh_installchangelogs ChangeLog
63         dh_link
64         dh_strip
65         dh_compress
66         dh_fixperms
67 #       # You may want to make some executables suid here.
68 #       dh_suidregister
69 #       dh_makeshlibs
70         dh_installdeb
71 #       dh_perl
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install