configmake: fix make -q problem
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Aug 2011 18:20:28 +0000 (11:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Aug 2011 18:22:09 +0000 (11:22 -0700)
* modules/configmake (configmake.h): Update configmake.h's time stamp
even if the file does not change.  Otherwise, 'make -q' fails.
Problem reported by Simon Josefsson in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.

ChangeLog
modules/configmake

index f6e27cd..d020dd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       configmake: fix make -q problem
+       * modules/configmake (configmake.h): Update configmake.h's time stamp
+       even if the file does not change.  Otherwise, 'make -q' fails.
+       Problem reported by Simon Josefsson in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
+
 2011-08-11  Jim Meyering  <meyering@redhat.com>
 
        git-version-gen: correct the advice in a comment
index a387984..46c0fcc 100644 (file)
@@ -44,12 +44,8 @@ configmake.h: Makefile
          echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
          echo '#define PKGLIBDIR "$(pkglibdir)"'; \
          echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
-       } | sed '/""/d' > $@-t && \
-       if test -f $@ && cmp $@-t $@ > /dev/null; then \
-         rm -f $@-t; \
-       else \
-         rm -f $@; mv $@-t $@; \
-       fi
+       } | sed '/""/d' > $@-t
+       mv -f $@-t $@
 
 BUILT_SOURCES += configmake.h
 CLEANFILES += configmake.h configmake.h-t