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.
12 DESTDIR=$(CURDIR)/debian/citadel-webcit
16 CFLAGS = -Wall -g -ggdb
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
24 configure: configure-stamp
27 CFLAGS="$(CFLAGS)" ./configure \
28 --host=$(DEB_HOST_GNU_TYPE) \
29 --build=$(DEB_BUILD_GNU_TYPE) \
31 --with-wwwdir=/usr/share/citadel-webcit \
32 --with-localedir=/usr/share/ \
33 --with-editordir=/usr/share/tinymce/www \
34 --with-rundir=/var/run/citadel \
35 --with-ical --with-db --with-ldap \
36 --with-zlib --with-ssl --with-libiconf \
37 --with-newt --with-included-gettext
44 build-stamp: configure-stamp
47 # Add here commands to compile the package.
49 #docbook-to-man debian/webcit.sgml > webcit.1
56 rm -f build-stamp configure-stamp
58 # Add here commands to clean up after the build process.
68 $(MAKE) install-bin install-locale install-wwwdata DESTDIR=$(DESTDIR)
69 # mkdir -p $(DESTDIR)/etc/citadel; cp webcit.conf $(DESTDIR)/etc/citadel/
73 # Build architecture-independent files here.
74 binary-indep: build install
75 # We have nothing to do by default.
77 # Build architecture-dependent files here.
78 binary-arch: build install
81 # dh_installchangelogs ChangeLog
91 dh_installinit --name=webcit
108 binary: binary-indep binary-arch
109 .PHONY: build clean binary-indep binary-arch binary install configure