diff top/maint.mk @ 17201:34b7c5b6a266

maint.mk: avoid extra forks * top/maint.mk (_cfg_mk): The GNU make manual documents that "$(wildcard FILE)" expands to empty if FILE doesn't exist. So use that instead of "$(shell test -f FILE && echo FILE)".
author Stefano Lattarini <stefano.lattarini@gmail.com>
date Sat, 08 Dec 2012 18:06:12 +0100
parents f54c37d872ca
children 5b730fea4cab
line wrap: on
line diff
--- a/top/maint.mk	Fri Dec 07 19:31:34 2012 -0800
+++ b/top/maint.mk	Sat Dec 08 18:06:12 2012 +0100
@@ -155,7 +155,7 @@
 ## Sanity checks.  ##
 ## --------------- ##
 
-_cfg_mk := $(shell test -f $(srcdir)/cfg.mk && echo '$(srcdir)/cfg.mk')
+_cfg_mk := $(wildcard $(srcdir)/cfg.mk)
 
 # Collect the names of rules starting with 'sc_'.
 syntax-check-rules := $(sort $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' \