summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-aux/Makefile.once.head/20-libretools.mk2
-rw-r--r--build-aux/no-builtin-variables.mk4
-rw-r--r--config.mk1
3 files changed, 7 insertions, 0 deletions
diff --git a/build-aux/Makefile.once.head/20-libretools.mk b/build-aux/Makefile.once.head/20-libretools.mk
index 48964d9..d7c3b0e 100644
--- a/build-aux/Makefile.once.head/20-libretools.mk
+++ b/build-aux/Makefile.once.head/20-libretools.mk
@@ -58,6 +58,8 @@ detect-ronn = $(filter-out $(detect-ignore-ronn),$(filter %.ronn ,$(detect-a
detect-md = $(filter-out $(detect-ignore-md) ,$(filter %.ronn %.md,$(detect-all)))
detect-sh = $(filter-out $(detect-ignore-sh) ,$(filter %.sh ,$(detect-all)))
+LIBREXGETTEXT_FLAGS ?=
+
ifeq ($(wildcard $(topsrcdir)/.git),)
include $(topsrcdir)/.srcversion-libretools.mk
else
diff --git a/build-aux/no-builtin-variables.mk b/build-aux/no-builtin-variables.mk
index c236c73..c3aef58 100644
--- a/build-aux/no-builtin-variables.mk
+++ b/build-aux/no-builtin-variables.mk
@@ -9,3 +9,7 @@ $(foreach v,$(filter-out .% MAKE% SUFFIXES,$(_default_variables))\
$(filter .LIBPATTERNS MAKEINFO,$(_default_variables)),\
$(eval undefine $v))
undefine _default_variables
+
+# Because Make uses .LIBPATTERNS internally, it should always be
+# defined in case --warn-undefined-variables
+.LIBPATTERNS ?=
diff --git a/config.mk b/config.mk
index 5c45630..27dbe80 100644
--- a/config.mk
+++ b/config.mk
@@ -7,6 +7,7 @@ ifeq ($(topsrcdir),)
topoutdir := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
topsrcdir := $(topoutdir)
+MAKEFLAGS += --warn-undefined-variables
include $(topsrcdir)/build-aux/no-builtin-variables.mk
PACKAGE = libretools