]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* maintMakefile: Fix logging of check-alt-config target.
authorPaul Smith <psmith@gnu.org>
Mon, 4 Apr 2016 05:15:17 +0000 (01:15 -0400)
committerPaul Smith <psmith@gnu.org>
Mon, 4 Apr 2016 05:38:37 +0000 (01:38 -0400)
maintMakefile

index f7bdf00287ee42664f787cd7df9a8aecf56833c8..0720669afbad3f64cb88ef4eb9f78e84d20250a9 100644 (file)
@@ -230,11 +230,14 @@ check-alt-config: \
        checkcfg.CPPFLAGS^-DNO_OUTPUT_SYNC \
        checkcfg.CPPFLAGS^-DNO_ARCHIVES
 
+# Trick GNU make so it doesn't run the submake as a recursive make.
 NR_MAKE = $(MAKE)
 
 # Check builds both with build.sh and with make
 checkcfg.%: distdir
-       @( rm -rf $(distdir)/_build \
+       @echo "Building $@ (output in checkcfg.$*.log)"
+       @exec >'checkcfg.$*.log' 2>&1; \
+          rm -rf $(distdir)/_build \
        && mkdir $(distdir)/_build \
        && cd $(distdir)/_build \
        && echo "Testing configure with $(subst ^,=,$*)" \
@@ -245,7 +248,7 @@ checkcfg.%: distdir
        && ./make $(AM_MAKEFLAGS) check \
        && rm -f *.o make \
        && $(NR_MAKE) $(AM_MAKEFLAGS) \
-       && ./make $(AM_MAKEFLAGS) check ) 2>&1 | tee checkcfg.$*.log
+       && ./make $(AM_MAKEFLAGS) check
 
 
 ## --------------- ##
@@ -382,6 +385,9 @@ $(UPLOADS): $(DIST_ARCHIVES) $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE)
        $(FTPPUT) "$(gnu-upload-host)" "$(gnu-upload-dir)/$(@:upload-%=%)" $^
 
 
+# Rebuild Makefile.in if this file is modifed.
+Makefile.in: maintMakefile
+
 # Copyright (C) 1997-2016 Free Software Foundation, Inc.
 # This file is part of GNU Make.
 #