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
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
66 # Build architecture-independent files here.
67 # Pass -i to all debhelper commands in this target to reduce clutter.
68 binary-indep: build install
70 # Build architecture-dependent files here.
71 # Pass -a to all debhelper commands in this target to reduce clutter.
72 binary-arch: build install
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
95 # You may want to make some executables suid here.
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install configure