summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--top/maint.mk2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b08418164b..27e8256d7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-06-04 Eric Blake <eblake@redhat.com>
+
+ maintainer-makefile: avoid spurious error messages
+ * top/maint.mk (syntax-check): Guard definition and use of
+ $(shell) by whether Makefile is present.
+
2014-06-03 Ben Walton <bdwalton@gmail.com>
rename: avoid unused-but-set-variable compiler warning
diff --git a/top/maint.mk b/top/maint.mk
index b6cd5a2031..2e1bae6325 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -155,6 +155,7 @@ export LC_ALL = C
## Sanity checks. ##
## --------------- ##
+ifneq ($(_gl-Makefile),)
_cfg_mk := $(wildcard $(srcdir)/cfg.mk)
# Collect the names of rules starting with 'sc_'.
@@ -196,6 +197,7 @@ local-check := \
$(filter-out $(local-checks-to-skip), $(local-checks-available)))
syntax-check: $(local-check)
+endif
# _sc_search_regexp
#