3 # Made with the aid of debmake, by Christoph Lameter,
4 # based on the sample debian/rules file for GNU hello by Ian Jackson.
13 cd $(SOURCEPATH) && ./autogen.sh
14 cd $(SOURCEPATH) && ./configure --with-fhs \
19 --libdir=/etc/samba4 \
20 --with-privatedir=/etc/samba4 \
21 --with-piddir=/var/run/samba4 \
22 --localstatedir=/var \
32 cd $(SOURCEPATH) && $(MAKE) proto all
38 -cd $(SOURCEPATH) && $(MAKE) clean
39 rm -f `find . -name "*~"`
40 rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
41 rm -f debian/*substvars
43 binary-indep: checkroot build
45 # There are no architecture-independent files to be uploaded
46 # generated by this package. If there were any they would be
49 binary-arch: checkroot build
51 rm -rf debian/tmp `find debian/* -type d ! -name CVS`
53 cd debian/tmp && install -d `cat ../dirs`
54 cd $(SOURCEPATH) && $(MAKE) install DESTDIR=`pwd`/../packaging/debian/tmp
56 dpkg-gencontrol -isp -psamba4
57 chown -R root:root debian/tmp
58 chmod -R go=rX debian/tmp
59 dpkg --build debian/tmp ..
65 binary: binary-indep binary-arch
69 test root = "`whoami`"
71 .PHONY: binary binary-arch binary-indep clean checkroot