2004-05-14 12:05:48 +00:00
#!/usr/bin/make -f
2005-05-14 16:41:53 +00:00
# By Jelmer Vernooij <jelmer@samba.org>
2004-05-14 12:05:48 +00:00
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
2005-06-27 10:00:43 +00:00
SOURCEPATH=../source
2004-05-14 13:14:11 +00:00
2004-05-14 12:05:48 +00:00
package=samba4
2005-12-12 19:33:09 +00:00
configure: configure-stamp
configure-stamp:
2005-05-14 16:41:53 +00:00
dh_testdir
2004-05-14 13:14:11 +00:00
cd $(SOURCEPATH) && ./autogen.sh
cd $(SOURCEPATH) && ./configure --with-fhs \
2004-05-14 12:05:48 +00:00
--prefix=/usr \
2005-06-27 22:07:28 +00:00
--mandir=/usr/share/man \
2004-05-14 12:05:48 +00:00
--enable-shared \
--enable-static \
--sysconfdir=/etc \
--libdir=/etc/samba4 \
2005-12-12 19:33:09 +00:00
--with-configdir=/etc/samba4 \
2004-05-14 12:05:48 +00:00
--with-privatedir=/etc/samba4 \
--with-piddir=/var/run/samba4 \
--localstatedir=/var \
--with-pam \
--with-syslog \
--with-readline \
--with-ldap
2005-08-21 23:56:47 +00:00
cd $(SOURCEPATH)/pidl && perl Makefile.PL verbose INSTALLDIRS=vendor PREFIX=/usr
2005-05-14 16:41:53 +00:00
touch $@
2004-05-14 12:05:48 +00:00
2005-12-12 19:33:09 +00:00
build: build-stamp
build-stamp: configure
2005-05-14 16:41:53 +00:00
dh_testdir
2005-06-27 10:00:43 +00:00
$(MAKE) -C $(SOURCEPATH) proto
-$(MAKE) -C $(SOURCEPATH) pch
$(MAKE) -C $(SOURCEPATH) all
2005-12-12 19:33:09 +00:00
$(MAKE) -C $(SOURCEPATH)/pidl all
2005-05-14 16:41:53 +00:00
touch $@
2004-05-14 12:05:48 +00:00
clean:
2005-05-14 16:41:53 +00:00
dh_testdir
2005-12-12 19:33:09 +00:00
dh_testroot
2005-05-14 16:41:53 +00:00
dh_clean
2005-12-12 19:33:09 +00:00
$(RM) debian/tmp
2005-06-27 10:00:43 +00:00
-$(MAKE) -C $(SOURCEPATH) clean
2005-12-12 19:33:09 +00:00
$(RM) build-stamp configure-stamp
2004-05-14 12:05:48 +00:00
2005-05-14 16:41:53 +00:00
binary-indep: build install
2005-12-12 19:33:09 +00:00
dh_testdir
dh_testroot
2005-06-27 10:00:43 +00:00
dh_install -i --sourcedir=debian/tmp
2005-05-14 16:41:53 +00:00
dh_installdocs -i
dh_installchangelogs -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
2004-05-14 12:05:48 +00:00
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
2005-05-14 16:41:53 +00:00
install: build
dh_clean -k
dh_installdirs
2005-12-12 19:33:09 +00:00
mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1
mkdir -p $(CURDIR)/debian/tmp/etc/samba4
2005-06-27 10:00:43 +00:00
$(MAKE) -C $(SOURCEPATH) install DESTDIR=$(CURDIR)/debian/tmp
2005-06-27 22:07:28 +00:00
$(MAKE) -C $(SOURCEPATH) manpages installman DESTDIR=$(CURDIR)/debian/tmp
cp $(CURDIR)/debian/smb.conf $(CURDIR)/debian/tmp/etc/samba4
2005-08-21 23:56:47 +00:00
$(MAKE) -C $(SOURCEPATH)/pidl install DESTDIR=$(CURDIR)/debian/tmp
2004-05-14 12:05:48 +00:00
2005-05-14 16:41:53 +00:00
binary-arch: build install
2005-12-12 19:33:09 +00:00
dh_testdir
dh_testroot
2005-06-27 10:00:43 +00:00
dh_install -a --sourcedir=debian/tmp
2005-06-27 22:07:28 +00:00
dh_installchangelogs -a
2005-05-14 16:41:53 +00:00
dh_strip -a
2005-12-12 19:33:09 +00:00
dh_perl -a
2005-05-14 16:41:53 +00:00
dh_compress -a
dh_fixperms -a
dh_makeshlibs -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
2004-05-14 12:05:48 +00:00
2005-07-09 21:40:15 +00:00
binary: binary-arch binary-indep
2004-05-14 12:05:48 +00:00
2005-12-12 19:33:09 +00:00
.PHONY: configure build install binary binary-arch binary-indep clean