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.
37 FPIC=-fpic SONAME=$(SONAME)
44 rm -f build-stamp configure-stamp
46 # Add here commands to clean up after the build process.
48 rm -f config.cache config.log config.status h/config.h \
49 Makefile clients/Makefile clients/xzwrite/Makefile \
50 clients/zaway/Makefile clients/zctl/Makefile \
51 clients/zleave/Makefile clients/zlocate/Makefile \
52 clients/zmailnotify/Makefile clients/znol/Makefile \
53 clients/zpopnotify/Makefile clients/zshutdown_notify/Makefile \
54 clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile \
55 libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile \
67 # Add here commands to install the package into debian/tmp.
68 $(MAKE) install DESTDIR=`pwd`/debian/tmp
69 mv debian/tmp/usr/lib/libzephyr.so debian/tmp/usr/lib/libzephyr.so.$(SONAME)
70 ln -s libzephyr.so.$(SONAME) debian/tmp/usr/lib/libzephyr.so
71 mkdir -p debian/tmp/etc/zephyr/acl
72 set -x; for i in debian/acl/*; do install -c -m 544 -o root $$i debian/tmp/etc/zephyr/acl; done; set +x
73 install -c -m 544 debian/zephyr.vars debian/tmp/etc/zephyr
75 # Build architecture-independent files here.
76 # Pass -i to all debhelper commands in this target to reduce clutter.
77 binary-indep: build install
79 # Build architecture-dependent files here.
80 # Pass -a to all debhelper commands in this target to reduce clutter.
81 binary-arch: build install
101 # You may want to make some executables suid here.
111 binary: binary-indep binary-arch
113 .PHONY: build clean binary-indep binary-arch binary install configure