summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-01-31 13:06:33 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-01-31 13:06:33 +0000
commitc4189640171632e4b3812dcc6a82b118c682b6b3 (patch)
tree34d28527f46fc2d3272fb010b8fca28169421cfa /Makefile.in
parent53f49be05f25e146a263fa3bb74d5deccc440f8b (diff)
downloadquilt-c4189640171632e4b3812dcc6a82b118c682b6b3.tar.gz
- Fix generating doc/README after subdirectory support broke it.
- Remove excessive newlines in -h messages.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 6f6402d..90c67f2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -125,14 +125,15 @@ doc/README : doc/README.in
done 2>&1 < $< > $@
.PHONY :: reference
-reference : $(QUILT:%=quilt/%)
- @for i in $+; \
+reference : $(QUILT:%=quilt/%) scripts/patchfns
+ @dir=$(CURDIR); \
+ for i in $(filter-out scripts/patchfns,$+); \
do \
- echo "$$i >> README" >&2; \
echo; \
- (bash -c ". scripts/patchfns ;LC_ALL=C . $$i -h"); \
+ (bash -c ". scripts/patchfns ; cd $$dir ;LC_ALL=C . $$i -h"); \
+ echo; \
done | \
- sed -e 's/^Usage: \?//' -e 's/^/ /'
+ sed -e '/^Usage:/{s/^Usage: \?//;b}' -e '/^$$/!s/^/ /'
bin/guards.1 : bin/guards
mkdir -p $$(dirname $@)
@@ -174,7 +175,7 @@ $(PACKAGE).spec : $(PACKAGE).spec.in $(PACKAGE).changes Makefile \
| scripts/parse-patch -u changelog $@
% : %.in
- @echo "$< -> $@"
+ @echo "$< -> $@" >&2
@sed -e 's:@LIB''@:$(LIB_DIR):g' \
-e 's:@QUILT''@:$(QUILT_DIR):g' \
-e 's:@SCRIPTS''@:$(SCRIPTS_DIR):g' \