[Pkg-voip-commits] [portaudio19] 65/114: Simplify debian/rules.

Benjamin Drung bdrung at moszumanska.debian.org
Sun Dec 25 20:05:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository portaudio19.

commit 8d204521c58b8a985a511da845e04421bf2e2a7c
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sun Feb 20 17:51:29 2011 +0000

    Simplify debian/rules.
---
 debian/rules | 24 +++++-------------------
 1 file changed, 5 insertions(+), 19 deletions(-)

diff --git a/debian/rules b/debian/rules
index c6a61c3..2a2f07f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,32 +1,18 @@
 #!/usr/bin/make -f
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-CFLAGS = -Wall -g -D_REENTRANT
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
 %:
-	dh $@
+	dh $@ --parallel
 
 override_dh_auto_clean:
-	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_auto_clean
 	[ ! -f bindings/cpp/Makefile ] || $(MAKE) distclean -C bindings/cpp
-	rm -f bindings/cpp/doc/Makefile bindings/cpp/libtool doc/html/*
+	rm -f bindings/cpp/doc/Makefile doc/html/*
 
 override_dh_auto_configure:
-	CFLAGS="$(CFLAGS)" ./configure --enable-cxx --prefix=/usr \
-		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+	dh_auto_configure -- --enable-cxx
 
 override_dh_auto_build:
-	$(MAKE)
+	dh_auto_build
 	doxygen
 
 DEBVERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/portaudio19.git



More information about the Pkg-voip-commits mailing list