[Pkg-samba-maint] r3496 - branches/ldb/experimental/debian
jelmer at alioth.debian.org
jelmer at alioth.debian.org
Sun May 23 16:21:03 UTC 2010
Author: jelmer
Date: 2010-05-23 16:21:02 +0000 (Sun, 23 May 2010)
New Revision: 3496
Modified:
branches/ldb/experimental/debian/rules
Log:
simplify rules.
Modified: branches/ldb/experimental/debian/rules
===================================================================
--- branches/ldb/experimental/debian/rules 2010-05-23 15:41:50 UTC (rev 3495)
+++ branches/ldb/experimental/debian/rules 2010-05-23 16:21:02 UTC (rev 3496)
@@ -1,11 +1,7 @@
#!/usr/bin/make -f
CFLAGS = -g -Wall
-LDFLAGS = -Wl,--as-needed
-SHLD_FLAGS = -shared $(LDFLAGS)
-version=$(shell dpkg-parsechangelog -l$(CURDIR)/debian/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$$//' | sed 's/~.\+$$//')
-
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
@@ -24,25 +20,21 @@
get-orig-source:
./debian/build-orig.sh
-build: configure build-stamp
-build-stamp:
- dh_testdir
- $(MAKE)
- touch build-stamp
-
clean:
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
+ rm -f configure-stamp
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean
-install: build
+install: configure
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
- DESTDIR=$(DESTDIR) $(MAKE) install
+ $(MAKE) install DESTDIR=$(DESTDIR)
+ # Work around waf bug
+ mv $(DESTDIR)/usr/include/ldb.inst.h $(DESTDIR)/usr/include/ldb.h
# Don't install ldbtest
rm -f $(DESTDIR)/usr/bin/ldbtest
dh_install --fail-missing --list-missing --sourcedir=$(DESTDIR)
More information about the Pkg-samba-maint
mailing list