summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-05-10 10:57:38 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-05-10 10:57:38 +0200
commit126cd5242844fa9511cb6709fc5df72bf1851d14 (patch)
tree33397736818a78f1b3d9d2815d94072beaaee89e
parent5a37b0e7bf899d9b7d3835c176da926064b75bb2 (diff)
downloadautomake-126cd5242844fa9511cb6709fc5df72bf1851d14.tar.gz
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 <stefano.lattarini@gmail.com>
-rw-r--r--lib/am/remake-hdr.am4
1 files 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