3 # Uncomment this to turn on verbose mode.
6 # This has to be exported to make some magic below work.
9 DEB_DESTDIR = $(CURDIR)/debian/tmp
13 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 configure: configure-stamp
23 CFLAGS="$(CFLAGS)" ./configure \
24 --with-datadir=/var/lib/citadel \
25 --with-spooldir=/var/spool/citadel \
26 --with-sysconfdir=/etc/citadel \
27 --with-rundir=/var/run/citadel \
28 --with-docdir=/usr/share/doc/citadel-doc/ \
39 build: build-arch build-indep
41 build-arch: build-arch-stamp
42 build-arch-stamp: configure-stamp
47 build-indep: build-indep-stamp
48 build-indep-stamp: configure-stamp
55 rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
61 install: install-indep install-arch
68 $(MAKE) DESTDIR=$(DEB_DESTDIR) install-doc-new
70 dh_install -i --sourcedir=debian/tmp
78 $(MAKE) DESTDIR=$(DEB_DESTDIR) install-exec-new install-data-new
80 mkdir -p $(DEB_DESTDIR)/usr/lib/citadel-server
81 mv $(DEB_DESTDIR)/usr/sbin/setup \
82 $(DEB_DESTDIR)/usr/lib/citadel-server/
84 mkdir -p $(DEB_DESTDIR)/usr/share/doc/citadel-server/
85 mv $(DEB_DESTDIR)/usr/share/doc/citadel-doc/database_cleanup.sh \
86 $(DEB_DESTDIR)/usr/share/doc/citadel-server/
88 dh_install -s --sourcedir=debian/tmp
96 dh_installinit --name=citadel
108 # Build architecture independant packages using the common target.
109 binary-indep: build-indep install-indep
110 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
112 # Build architecture dependant packages using the common target.
113 binary-arch: build-arch install-arch
114 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
116 binary: binary-arch binary-indep
117 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure