[SCM] Debian package checker branch, master, updated. 1.24.3-42-g91b1018
The following commit has been merged in the master branch:
commit 91b101804e400500985e1611319e288b796c52ae
Author: Frank Lichtenheld <djpig@debian.org>
Date: Fri Aug 15 12:51:36 2008 -0300
debian/rules: Add build stamp file
diff --git a/debian/changelog b/debian/changelog
index 7e954ee..3366856 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -45,6 +45,7 @@ lintian (1.24.4) UNRELEASED; urgency=low
* debian/rules:
+ [FL] Use $(PERL) instead of a hardcoded path.
+ [FL] Clean-up the binary-indep code.
+ + [FL] Add build stamp file.
* doc/README{,.in}:
+ [FL] Move README to README.in and add the listing of lintian
diff --git a/debian/rules b/debian/rules
index 53ceb9b..a9f1773 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@ PERL ?= /usr/bin/perl
VER := $(shell head -1 debian/changelog | sed -e 's/^.*(//' -e 's/).*$$//')
tmp := $(CURDIR)/debian/lintian
neededfiles := debian/rules frontend/lintian
+docsource := doc/lintian.sgml doc/README.in
allchecks := $(wildcard checks/*)
allcollect := $(wildcard collection/*)
tagfiles := $(wildcard testset/tags.* t/*/tags)
@@ -18,7 +19,8 @@ runtests: $(neededfiles) $(allchecks) $(allcollect) $(tagfiles) $(testfiles)
LINTIAN_ROOT="" $(PERL) t/runtests -k t debian/tests $(onlyrun)
if [ "$(onlyrun)" != "" ]; then touch $@; fi
-build: $(neededfiles)
+build: build-stamp
+build-stamp: $(neededfiles) $(docsource)
@echo .... running build ....
dh_testdir
cd doc && LANG=C debiandoc2html lintian.sgml
@@ -26,12 +28,13 @@ build: $(neededfiles)
LINTIAN_ROOT="" ./frontend/lintian --help \
| tail -n +3 | $(PERL) -n -e 'print " $$_"' >doc/help.tmp
$(PERL) -p -e 'BEGIN { open HELP, "<", "doc/help.tmp" or die; local $$/ = undef; $$h = <HELP> }; s/%LINTIAN_HELP%/$$h/' doc/README.in >doc/README
+ touch $@
clean: $(neededfiles)
@echo .... cleaning ....
dh_testdir
dh_testroot
- rm -f runtests
+ rm -f runtests build-stamp
rm -f doc/help.tmp doc/README
rm -rf doc/lintian.html/ doc/lintian.txt
rm -rf debian/tests
--
Debian package checker
Reply to: