I noticed a small inconsistency: even with V=0, make would still
echo this command:
mv -f lib/configmake.h-t lib/configmake.h
Every other modules/* snippet did it differently:
$ g grep -B1 mv.-f modules/*
modules/alloca-opt- } > $@-t && \
modules/alloca-opt: mv -f $@-t $@
--
modules/argz- } > $@-t && \
modules/argz: mv -f $@-t $@
--
modules/byteswap- } > $@-t && \
modules/byteswap: mv -f $@-t $@
--
modules/fnmatch- } > $@-t && \
modules/fnmatch: mv -f $@-t $@
--
modules/getopt-posix- } > $@-t && \
modules/getopt-posix: mv -f $@-t $@
--
modules/glob- } > $@-t && \
modules/glob: mv -f $@-t $@
--
modules/poll-h- } > $@-t && \
modules/poll-h: mv -f $@-t $@
--
modules/sys_resource- } > $@-t && \
modules/sys_resource: mv -f $@-t $@
--
modules/sys_socket- } > $@-t && \
modules/sys_socket: mv -f $@-t $@
--
modules/sys_uio- } > $@-t && \
modules/sys_uio: mv -f $@-t $@
--
modules/sysexits- } > $@-t && \
modules/sysexits: mv -f $@-t $@
This makes configmake's rule consistent:
>From 5a206b3d9b45550b1c4a928cd51deaf1438cb4c8 Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email protected]>
Date: Mon, 16 Apr 2012 18:22:40 +0200
Subject: [PATCH] configmake: correct minor inconsistency in Makefile rule
* modules/configmake (Makefile.am): All other rules like this one
run the final "mv -f ..." in the same backslash-continued command
as the one that does everything else. This one put the mv -f ...
command on a separate, non-backslash-continued line.
Make it like the others.
---
ChangeLog | 7 +++++++
modules/configmake | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index ebc9b45..8817dab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2012-04-16 Jim Meyering <[email protected]>
+ configmake: correct minor inconsistency in Makefile rule
+ * modules/configmake (Makefile.am): All other rules like this one
+ run the final "mv -f ..." in the same backslash-continued command
+ as the one that does everything else. This one put the mv -f ...
+ command on a separate, non-backslash-continued line.
+ Make it like the others.
+
bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
* build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
the one from gettext. Reported by Akim Demaille.
diff --git a/modules/configmake b/modules/configmake
index 46c0fcc..845e0f4 100644
--- a/modules/configmake
+++ b/modules/configmake
@@ -44,7 +44,7 @@ configmake.h: Makefile
echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
echo '#define PKGLIBDIR "$(pkglibdir)"'; \
echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
- } | sed '/""/d' > $@-t
+ } | sed '/""/d' > $@-t && \
mv -f $@-t $@
BUILT_SOURCES += configmake.h
--
1.7.10.169.g146fe