[Pkg-voip-commits] r5349 - /rtpproxy/trunk/debian/rules

marcusb-guest at alioth.debian.org marcusb-guest at alioth.debian.org
Sat Mar 22 22:05:37 UTC 2008


Author: marcusb-guest
Date: Sat Mar 22 22:05:37 2008
New Revision: 5349

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5349
Log:
Avoid building man page twice.

Modified:
    rtpproxy/trunk/debian/rules

Modified: rtpproxy/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/rtpproxy/trunk/debian/rules?rev=5349&op=diff
==============================================================================
--- rtpproxy/trunk/debian/rules (original)
+++ rtpproxy/trunk/debian/rules Sat Mar 22 22:05:37 2008
@@ -12,23 +12,25 @@
 	CFLAGS += -O2
 endif
 
+PKGNAME := rtpproxy
 DEBVERSION:=$(shell head -n 1 debian/changelog \
                     | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
 
-FILENAME := rtpproxy_$(UPVERSION).orig.tar.gz
+FILENAME := $(PKGNAME)_$(UPVERSION).orig.tar.gz
 URL := http://ftp.iptel.org/pub/rtpproxy/rtpproxy-$(UPVERSION).tar.gz
+
+MANPAGE := debian/$(PKGNAME).8
 
 config.status: configure
 	dh_testdir
 	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc 
 
-build-man:
-	xsltproc -nonet -o debian/rtpproxy.8 /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
-	debian/manpage.xml
+$(MANPAGE): debian/manpage.xml
+	xsltproc -nonet -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl $<
 
 build: build-stamp
-build-stamp:  config.status build-man
+build-stamp:  config.status $(MANPAGE)
 	dh_testdir
 	$(MAKE)
 	touch build-stamp
@@ -80,4 +82,4 @@
 	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install build-man print-version get-orig-source
+.PHONY: build clean binary-indep binary-arch binary install print-version get-orig-source




More information about the Pkg-voip-commits mailing list