summaryrefslogtreecommitdiff
path: root/top/maint.mk
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-12-08 18:06:12 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-12-08 18:06:12 +0100
commitcc32620e2501ca4f17f89492be56caf1f1185a47 (patch)
tree3a03de485707055e6c3feec263bfa1c4cda34eef /top/maint.mk
parentd86dc4d854e519c1ac10f0e846818846537b4baf (diff)
downloadgnulib-cc32620e2501ca4f17f89492be56caf1f1185a47.tar.gz
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)".
Diffstat (limited to 'top/maint.mk')
-rw-r--r--top/maint.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index cd365e774b..fd2b41bc09 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -155,7 +155,7 @@ export LC_ALL = C
## 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' \