From 14158ad5fc38836854a1a52ed03e6174a4083a96 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 31 May 2016 01:23:48 -0400 Subject: Makefile: run with --warn-undefined-variables --- build-aux/Makefile.once.head/20-libretools.mk | 2 ++ build-aux/no-builtin-variables.mk | 4 ++++ config.mk | 1 + 3 files changed, 7 insertions(+) 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 -- cgit v1.2.3-2-g168b