[Pkg-samba-maint] r3442 - trunk/samba4/debian
jelmer at alioth.debian.org
jelmer at alioth.debian.org
Sun Apr 11 16:27:43 UTC 2010
Author: jelmer
Date: 2010-04-11 16:27:37 +0000 (Sun, 11 Apr 2010)
New Revision: 3442
Modified:
trunk/samba4/debian/rules
Log:
Use waf.
Modified: trunk/samba4/debian/rules
===================================================================
--- trunk/samba4/debian/rules 2010-04-11 16:27:32 UTC (rev 3441)
+++ trunk/samba4/debian/rules 2010-04-11 16:27:37 UTC (rev 3442)
@@ -16,25 +16,22 @@
configure: configure-stamp
configure-stamp:
dh_testdir
- cd $(SOURCEPATH) && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-fhs \
+ cd $(SOURCEPATH) && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ../buildtools/bin/waf configure --enable-fhs \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--localstatedir=/var \
--with-piddir=/var/run \
- --with-readline \
- --enable-external-libtdb=yes \
- --enable-external-libtalloc=yes \
- --enable-external-libtevent=yes \
- --enable-external-libldb=yes \
- --enable-external-heimdal=yes \
+ --disable-rpath \
+ --disable-rpath-install \
+ --bundled-libraries="!talloc,!tdb,!tevent,!heimdal" \
#--enable-dso
touch $@
build: build-stamp
build-stamp: configure
dh_testdir
- $(MAKE) -C $(SOURCEPATH) all
+ cd $(SOURCEPATH) && ../buildtools/waf
touch $@
clean:
@@ -42,7 +39,9 @@
dh_testroot
dh_clean
$(RM) $(DESTDIR)
- [ ! -f $(SOURCEPATH)/mkconfig.mk ] || [ ! -f $(SOURCEPATH)/data.mk ] || $(MAKE) -C $(SOURCEPATH) clean
+ -cd $(SOURCEPATH) && ../buildtools/bin/waf clean
+ find . -name "*.pyc" | xargs rm -f
+ rm -rf buildtools/bin/.waf-*
$(RM) build-stamp configure-stamp
binary-indep: build install
@@ -60,8 +59,8 @@
dh_installdirs
mkdir -p $(DESTDIR)/usr/share/man/man1
mkdir -p $(DESTDIR)/etc/samba
- $(MAKE) -C $(SOURCEPATH) install DESTDIR=$(DESTDIR)
- $(MAKE) -C $(SOURCEPATH) manpages installman DESTDIR=$(DESTDIR)
+ cd $(SOURCEPATH) && DESTDIR="$(DESTDIR) ../buildtools/waf install
+ #$(MAKE) -C $(SOURCEPATH) manpages installman DESTDIR=$(DESTDIR)
dh_testdir
dh_testroot
# Remove files created when running install more than once
More information about the Pkg-samba-maint
mailing list