# HG changeset patch # User Stefano Lattarini # Date 1354986372 -3600 # Node ID 34b7c5b6a266c6318d93229dbf3f31978888b194 # Parent 8cd157fdb9476a2ab67017881cb8c2ef525764d9 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)". diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-12-08 Stefano Lattarini + + 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)". + 2012-12-07 Paul Eggert vasnprintf: fix ASCII_ONLY typo diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -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' \