3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
15 CFLAGS = -Wall -g -ggdb
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23 configure: configure-stamp
26 rm -rf $(CURDIR)/debian/webcit $(CURDIR)/debian/citadel-webcit $(CURDIR)/debian/citadel-webcit-apache
27 CFLAGS="$(CFLAGS)" ./configure \
28 --host=$(DEB_HOST_GNU_TYPE) \
29 --build=$(DEB_BUILD_GNU_TYPE) \
31 --with-webcit-dir=/usr \
32 --with-sysconfdir=/etc/citadel \
33 --with-spooldir=/var/spool/citadel \
34 --with-staticdir=/usr/share/doc/citadel-webcit/examples \
35 --with-rundir=/var/run/citadel \
36 --with-ical --with-db --with-ldap --with-zlib --with-ssl --with-libiconf --with-newt --with-included-gettext
43 build-stamp: configure-stamp
46 # Add here commands to compile the package.
48 #docbook-to-man debian/webcit.sgml > webcit.1
55 rm -f build-stamp configure-stamp
57 # Add here commands to clean up after the build process.
68 # Add here commands to install the package into debian/webcit.
69 root=$(CURDIR)/debian/webcit/
70 export root=$(CURDIR)/debian/citadel-webcit; \
71 $(MAKE) install DESTDIR=$(CURDIR)/debian/citadel-webcit
72 mkdir -p $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit ;\
73 mv $(CURDIR)/debian/citadel-webcit/usr/sbin/setup \
74 $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/; \
75 cd $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/ && \
76 md5sum `find -type f |grep -v md5sums `>md5sums; \
79 # Build architecture-independent files here.
80 binary-indep: build install
81 # We have nothing to do by default.
83 # Build architecture-dependent files here.
84 binary-arch: build install
87 dh_installchangelogs ChangeLog
114 binary: binary-indep binary-arch
115 .PHONY: build clean binary-indep binary-arch binary install configure