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
74 mkdir -p $(DEB_DESTDIR)/usr/lib/citadel-server
75 mv $(DEB_DESTDIR)/usr/sbin/setup \
76 $(DEB_DESTDIR)/usr/lib/citadel-server/
77 cp $(DEB_DESTDIR)/usr/sbin/citmail \
78 $(DEB_DESTDIR)/usr/sbin/sendmail
80 mkdir -p $(DEB_DESTDIR)/usr/share/doc/citadel-server/
81 mv $(DEB_DESTDIR)/usr/share/doc/citadel-doc/database_cleanup.sh \
82 $(DEB_DESTDIR)/usr/share/doc/citadel-server/
84 dh_install -s --sourcedir=debian/tmp
92 dh_installinit --name=citadel
104 # Build architecture independant packages using the common target.
105 binary-indep: build-indep install-indep
106 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
108 # Build architecture dependant packages using the common target.
109 binary-arch: build-arch install-arch
110 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
112 binary: binary-arch binary-indep
113 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure