]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] cleanup: minor cleanups in remake-hdr.am
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 20 May 2012 15:17:53 +0000 (17:17 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 21 May 2012 07:25:45 +0000 (09:25 +0200)
* lib/am/remake-hdr.am: Remove an obsolete comment, and a workaround
only needed for parallel BSD make.  Rewrite the recipe of '%CONFIG_H%'
to be less verbose (with no semantic change intended).  Add an
explicative comment.  Remove extra blank lines.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/remake-hdr.am

index a3b54a81ac87e697078653def8c96f2cb4cdce7e..61e32be04dfb337cd6c84c347069e28f632d30aa 100644 (file)
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-## Explicitly look in srcdir for benefit of non-GNU makes.
-
-
 %CONFIG_H%: %STAMP%
-## Recover from removal of CONFIG_HEADER
-       @if test ! -f $@; then rm -f %STAMP%; else :; fi
-       @if test ! -f $@; then $(MAKE) %STAMP%; else :; fi
-
+## Recover from removal of CONFIG_HEADER.  Break up in two invocations
+## so that "make -n" is properly honored.
+       @test -f $@ || rm -f %STAMP%
+       @test -f $@ || $(MAKE) %STAMP%
 
 %STAMP%: %CONFIG_H_DEPS% $(top_builddir)/config.status
        @rm -f %STAMP%
        cd $(top_builddir) && $(SHELL) ./config.status %CONFIG_H_PATH%
 
-
 ## Only the first file of AC_CONFIG_HEADERS is assumed to be generated
 ## by autoheader.
 if %?FIRST%
 %CONFIG_HIN%: %MAINTAINER-MODE% $(am__configure_deps)
-## Cater to parallel BSD make.
-       ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+       $(am__cd) $(top_srcdir) && $(AUTOHEADER)
 ## Whenever $(AUTOHEADER) has run, we must make sure that
 ## ./config.status will rebuild config.h.  The dependency from %STAMP%
 ## on %CONFIG_H_DEPS% (which contains config.hin) is not enough to