From 126cd5242844fa9511cb6709fc5df72bf1851d14 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 10 May 2013 10:57:38 +0200 Subject: [PATCH] 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 --- lib/am/remake-hdr.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2