[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] package_full_revision.txt and derived files
From: |
Patrick Mauritz |
Subject: |
Re: [Monotone-devel] package_full_revision.txt and derived files |
Date: |
Wed, 19 Jan 2005 20:01:13 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20050108) |
Richard Levitte - VMS Whacker schrieb:
package_full_revision.txt is currently regarded as a .PHONY, which is
the reason it gets constantly rebuilt. Is there a reason it can't
depend on MT/revision?
the attached patch guards most (I think all) txt2c executions with a
cmp(1) call to check if anything actually changed (similar to the
procedure with config.h in the configure script).
I'm not sure if that's actually valid, please review.
also, if there'd be a way to redefine the command name of autom4te (it's
autom4te259 here), I'd be glad - not sure, if there's a default way to
do that, which is why I don't have anything for that yet.
patrick mauritz
#
# patch "Makefile.am"
# from [fb88f80274a599e17d5e053054e82aa7c04fcb94]
# to [4d7140b55fa0a3764504d46145e694e5e3232b9e]
#
--- Makefile.am
+++ Makefile.am
@@ -309,10 +309,12 @@
chmod 0755 address@hidden(EXEEXT)
%.h: %.sql txt2c Makefile
- ./txt2c $< $(*F) >$@
+ ./txt2c $< $(*F) >address@hidden
+ cmp address@hidden $@ || mv address@hidden $@; rm -f address@hidden
%.h: %.lua txt2c Makefile
- ./txt2c $< $(*F) >$@
+ ./txt2c $< $(*F) >address@hidden
+ cmp address@hidden $@ || mv address@hidden $@; rm -f address@hidden
# A fake target so we can use MT/revision as a prerequisite, yet not
# crash if MT/revision does not exist.
@@ -322,7 +324,8 @@
if [ -f $< ]; then cp $< $@; fi
if [ ! -f $@ ]; then echo "unknown" > $@; fi
package_revision.h: package_revision.txt txt2c Makefile
- ./txt2c --strip-trailing $< package_revision >$@
+ ./txt2c --strip-trailing $< package_revision >address@hidden
+ cmp address@hidden $@ || mv address@hidden $@; rm -f address@hidden
.PHONY: package_full_revision.txt
package_full_revision.txt:
@@ -337,7 +340,8 @@
echo ' Generated from data cached in the distribution;'; \
echo ' further changes may have been made.') >> $@
package_full_revision.h: package_full_revision.txt txt2c Makefile
- ./txt2c $< package_full_revision >$@
+ ./txt2c $< package_full_revision >address@hidden
+ cmp address@hidden $@ || mv address@hidden $@; rm -f address@hidden
# automake doesn't build html docs
- Re: [Monotone-devel] package_full_revision.txt and derived files, (continued)
- Re: [Monotone-devel] package_full_revision.txt and derived files, Jon Bright, 2005/01/20
- Re: [Monotone-devel] package_full_revision.txt and derived files, Matthew A. Nicholson, 2005/01/20
- Re: [Monotone-devel] package_full_revision.txt and derived files, Dean Kusler, 2005/01/20
- Re: [Monotone-devel] package_full_revision.txt and derived files, Bernhard Reiter, 2005/01/20
- [Monotone-devel] Re: package_full_revision.txt and derived files, graydon hoare, 2005/01/20
- Re: [Monotone-devel] Re: package_full_revision.txt and derived files, Jon Bright, 2005/01/20
- Re: [Monotone-devel] Re: package_full_revision.txt and derived files, Matthew A. Nicholson, 2005/01/21
- [Monotone-devel] Re: package_full_revision.txt and derived files, Bruce Stephens, 2005/01/19
Re: [Monotone-devel] package_full_revision.txt and derived files, Richard Levitte - VMS Whacker, 2005/01/19
Re: [Monotone-devel] package_full_revision.txt and derived files, Nathaniel Smith, 2005/01/19
[Monotone-devel] Re: package_full_revision.txt and derived files, Bruce Stephens, 2005/01/19
Re: [Monotone-devel] Re: package_full_revision.txt and derived files, Nathaniel Smith, 2005/01/19