]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/debian/rules
this is now -6
[1ts-debian.git] / zephyr / 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
51         dh_clean
52
53 install: DH_OPTIONS=
54 install: build
55         dh_testdir
56         dh_testroot
57         dh_clean -k
58         dh_installdirs
59
60         # Add here commands to install the package into debian/tmp.
61         $(MAKE) install DESTDIR=`pwd`/debian/tmp
62         mkdir -p debian/tmp/etc/zephyr/acl
63         set -x; for i in debian/acl/*; do install -c -m 544 -o root $$i debian/tmp/etc/zephyr/acl; done; set +x
64         install -c -m 544 debian/zephyr.vars debian/tmp/etc/zephyr
65
66 # Build architecture-independent files here.
67 # Pass -i to all debhelper commands in this target to reduce clutter.
68 binary-indep: build install
69
70 # Build architecture-dependent files here.
71 # Pass -a to all debhelper commands in this target to reduce clutter.
72 binary-arch: build install
73         dh_testdir
74         dh_testroot
75         dh_movefiles -pzephyr-client
76         dh_movefiles -pzephyr-server
77         dh_movefiles -plibzephyr-dev
78         dh_installdebconf -pzephyr-client
79         dh_installdebconf -pzephyr-server
80         dh_installdocs
81 #       dh_installexamples
82 #       dh_installmenu
83 #       dh_installemacsen
84 #       dh_installpam
85         dh_installinit
86 #       dh_installcron
87 #       dh_installmanpages
88 #       dh_installinfo
89 #       dh_undocumented
90         dh_installchangelogs 
91         dh_strip
92 #       dh_link
93         dh_compress
94         dh_fixperms
95         # You may want to make some executables suid here.
96         dh_suidregister
97         dh_installdeb
98 #       dh_makeshlibs
99 #       dh_perl
100         dh_shlibdeps
101         dh_gencontrol
102         dh_md5sums
103         dh_builddeb
104
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install configure