2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 by Joey Hess.
5 # This version is for a hypothetical package that builds an
6 # architecture-dependant package, as well as an architecture-independent
9 # Uncomment this to turn on verbose mode.
12 # This is the debhelper compatability version to use.
15 # This has to be exported to make some magic below work.
18 configure: configure-stamp
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
26 build: configure-stamp build-stamp
30 # Add here commands to compile the package.
38 rm -f build-stamp configure-stamp
40 # Add here commands to clean up after the build process.
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 \
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
67 # Build architecture-independent files here.
68 # Pass -i to all debhelper commands in this target to reduce clutter.
69 binary-indep: build install
71 # Build architecture-dependent files here.
72 # Pass -a to all debhelper commands in this target to reduce clutter.
73 binary-arch: build install
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
96 # You may want to make some executables suid here.
106 binary: binary-indep binary-arch
107 .PHONY: build clean binary-indep binary-arch binary install configure