From: Stefano Lattarini Date: Fri, 10 May 2013 08:57:38 +0000 (+0200) Subject: am: prefer a shorter idiom where possible X-Git-Tag: v1.13b~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=126cd5242844fa9511cb6709fc5df72bf1851d14;p=thirdparty%2Fautomake.git am: prefer a shorter idiom where possible That is, prefer: test -f FILE || do_action over: if test ! -f FILE; then do_action; else :; fi * lib/am/remake-hdr.am (%CONFIG_H%): Here. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/remake-hdr.am b/lib/am/remake-hdr.am index 1703b01de..979427d41 100644 --- a/lib/am/remake-hdr.am +++ b/lib/am/remake-hdr.am @@ -16,8 +16,8 @@ %CONFIG_H%: %STAMP% ## Recover from removal of CONFIG_HEADER. - @if test ! -f $@; then rm -f %STAMP%; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) %STAMP%; else :; fi + @test -f $@ || rm -f %STAMP% + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) %STAMP% %STAMP%: %CONFIG_H_DEPS% $(top_builddir)/config.status