[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and RE
From: |
Michal Marek |
Subject: |
[Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README |
Date: |
Mon, 1 Jun 2015 13:08:45 +0200 |
Only rebuild the files if any of the help texts changed. The speed
improvement is not noticeable, but it makes the make output tidier when
working on the scripts.
Signed-off-by: Michal Marek <address@hidden>
---
.gitignore | 1 +
Makefile.in | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 70109e9..26ce8af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@ doc/quilt-rus.log
doc/quilt-rus.pdf
doc/README
doc/reference
+doc/reference.tmp
po/*.mo
diff --git a/Makefile.in b/Makefile.in
index 4af6757..d4bcb5d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -215,7 +215,7 @@ doc/quilt.1: doc/quilt.1.in doc/reference $(COMPAT)
esac; \
done < $< 2>&1 > $@
-doc/reference : bin/quilt $(QUILT:%=quilt/%) quilt/scripts/patchfns
quilt/scripts/utilfns $(COMPAT)
+doc/reference.tmp : bin/quilt $(QUILT:%=quilt/%) quilt/scripts/patchfns
quilt/scripts/utilfns $(COMPAT)
@unset LANG LC_MESSAGES LC_CTYPE LC_ALL; \
for i in $(sort $(QUILT)); \
do \
@@ -227,6 +227,11 @@ doc/reference : bin/quilt $(QUILT:%=quilt/%)
quilt/scripts/patchfns quilt/script
-e '/^$$/!s/^/ /' \
-e 's/^ Usage: *//' > $@
+doc/reference : doc/reference.tmp
+ @if ! cmp -s $@ $<; then \
+ @CP@ -f $< $@; \
+ fi
+
bin/guards.1 : bin/guards
$(POD2MAN) $< > $@
--
2.1.4
- [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README,
Michal Marek <=
- [Quilt-dev] [PATCH 2/3] Add support for generating git-style diffs, Michal Marek, 2015/06/01
- [Quilt-dev] [PATCH 3/3] Add testcase for diff --git, Michal Marek, 2015/06/01
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Jean Delvare, 2015/06/03
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Michal Marek, 2015/06/03
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Michal Marek, 2015/06/03
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Jean Delvare, 2015/06/03
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Michal Marek, 2015/06/03
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Jean Delvare, 2015/06/03
- Re: [Quilt-dev] [PATCH 1/3] Avoid unnecessary rebuilds of the manpage and README, Michal Marek, 2015/06/04