3 # Uncomment this to turn on verbose mode.
6 # This has to be exported to make some magic below work.
8 DEB_DESTDIR = $(CURDIR)/debian/tmp
11 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 configure: configure-stamp
20 CFLAGS="$(CFLAGS)" ./configure \
22 --with-datadir=/var/lib/citadel \
23 --with-spooldir=/var/spool/citadel \
24 --with-sysconfdir=/etc/citadel \
25 --with-rundir=/var/run/citadel \
26 --with-docdir=/usr/share/doc/citadel-doc/ \
37 build: build-arch build-indep
39 build-arch: build-arch-stamp
40 build-arch-stamp: configure-stamp
45 build-indep: build-indep-stamp
46 build-indep-stamp: configure-stamp
52 rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
57 install: install-indep install-arch
63 $(MAKE) DESTDIR=$(DEB_DESTDIR) install-doc-new
64 dh_install -i --sourcedir=debian/tmp
71 $(MAKE) DESTDIR=$(DEB_DESTDIR) install-exec-new install-data-new
72 mkdir -p $(DEB_DESTDIR)/usr/lib/citadel-server
73 mv $(DEB_DESTDIR)/usr/sbin/setup \
74 $(DEB_DESTDIR)/usr/lib/citadel-server/
75 mkdir -p $(DEB_DESTDIR)/usr/share/doc/citadel-server/
76 mv $(DEB_DESTDIR)/usr/share/doc/citadel-doc/database_cleanup.sh \
77 $(DEB_DESTDIR)/usr/share/doc/citadel-server/
79 dh_install -s --sourcedir=debian/tmp
87 dh_installinit --name=citadel
99 # Build architecture independant packages using the common target.
100 binary-indep: build-indep install-indep
101 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
103 # Build architecture dependant packages using the common target.
104 binary-arch: build-arch install-arch
105 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
107 binary: binary-arch binary-indep
108 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure