3 # Made with the aid of debmake, by Christoph Lameter,
4 # based on the sample debian/rules file for GNU hello by Ian Jackson.
10 cd source && ./autogen.sh
11 cd source && ./configure --with-fhs \
16 --libdir=/etc/samba4 \
17 --with-privatedir=/etc/samba4 \
18 --with-piddir=/var/run/samba4 \
19 --localstatedir=/var \
29 cd source && $(MAKE) proto all
35 -cd source && $(MAKE) clean
36 rm -f `find . -name "*~"`
37 rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
38 rm -f debian/*substvars
40 binary-indep: checkroot build
42 # There are no architecture-independent files to be uploaded
43 # generated by this package. If there were any they would be
46 binary-arch: checkroot build
48 rm -rf debian/tmp `find debian/* -type d ! -name CVS`
50 cd debian/tmp && install -d `cat ../dirs`
51 cd source && $(MAKE) install DESTDIR=`pwd`/../debian/tmp
53 dpkg-gencontrol -isp -psamba4
54 chown -R root:root debian/tmp
55 chmod -R go=rX debian/tmp
56 dpkg --build debian/tmp ..
62 binary: binary-indep binary-arch
66 test root = "`whoami`"
68 .PHONY: binary binary-arch binary-indep clean checkroot