]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - debian/rules
2463bea953f8062905ff5c1c4e6a984935912e70
[1ts-debian.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # GNU copyright 1997 by Joey Hess.
4 #
5 # This version is for a hypothetical package that builds an
6 # architecture-dependant package, as well as an architecture-independent
7 # package.
8
9 # Uncomment this to turn on verbose mode. 
10 #export DH_VERBOSE=1
11
12 # This is the debhelper compatability version to use.
13 export DH_COMPAT=2
14
15 # This has to be exported to make some magic below work.
16 export DH_OPTIONS
17
18 configure: configure-stamp
19 configure-stamp:
20         dh_testdir
21         # Add here commands to configure the package.
22         ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc --datadir=/etc --with-krb4=/usr --with-ares=/usr
23
24         touch configure-stamp
25
26 build: configure-stamp build-stamp
27 build-stamp:
28         dh_testdir
29
30         # Add here commands to compile the package.
31         $(MAKE)
32
33         touch build-stamp
34
35 clean:
36         dh_testdir
37         dh_testroot
38         rm -f build-stamp configure-stamp
39
40         # Add here commands to clean up after the build process.
41         -$(MAKE) clean
42         rm -f config.cache config.log config.status h/config.h \
43         Makefile clients/Makefile clients/xzwrite/Makefile \
44         clients/zaway/Makefile clients/zctl/Makefile \
45         clients/zleave/Makefile clients/zlocate/Makefile \
46         clients/zmailnotify/Makefile clients/znol/Makefile \
47         clients/zpopnotify/Makefile clients/zshutdown_notify/Makefile \
48         clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile \
49         libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile \
50         server/version.h
51
52         dh_clean
53
54 install: DH_OPTIONS=
55 install: build
56         dh_testdir
57         dh_testroot
58         dh_clean -k
59         dh_installdirs
60
61         # Add here commands to install the package into debian/tmp.
62         $(MAKE) install DESTDIR=`pwd`/debian/tmp
63         mkdir -p debian/tmp/etc/zephyr/acl
64         set -x; for i in debian/acl/*; do install -c -m 544 -o root $$i debian/tmp/etc/zephyr/acl; done; set +x
65         install -c -m 544 debian/zephyr.vars debian/tmp/etc/zephyr
66
67 # Build architecture-independent files here.
68 # Pass -i to all debhelper commands in this target to reduce clutter.
69 binary-indep: build install
70
71 # Build architecture-dependent files here.
72 # Pass -a to all debhelper commands in this target to reduce clutter.
73 binary-arch: build install
74         dh_testdir
75         dh_testroot
76         dh_movefiles -pzephyr-client
77         dh_movefiles -pzephyr-server
78         dh_movefiles -plibzephyr-dev
79         dh_installdebconf -pzephyr-client
80         dh_installdebconf -pzephyr-server
81         dh_installdocs
82 #       dh_installexamples
83 #       dh_installmenu
84 #       dh_installemacsen
85 #       dh_installpam
86         dh_installinit
87 #       dh_installcron
88 #       dh_installmanpages
89 #       dh_installinfo
90 #       dh_undocumented
91         dh_installchangelogs 
92         dh_strip
93 #       dh_link
94         dh_compress
95         dh_fixperms
96         # You may want to make some executables suid here.
97         dh_suidregister
98         dh_installdeb
99 #       dh_makeshlibs
100 #       dh_perl
101         dh_shlibdeps
102         dh_gencontrol
103         dh_md5sums
104         dh_builddeb
105
106 binary: binary-indep binary-arch
107 .PHONY: build clean binary-indep binary-arch binary install configure