aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-15 13:52:42 +0100
committerLoïc Hoguin <[email protected]>2017-11-15 13:52:42 +0100
commit8654d90d60224d3c92f3a3905d1331f9e00d608a (patch)
treec2b53079fc052610bc59801cca2109804e848cfe /Makefile
parent1a5adc65f04a8c92c4aee6a6115d80120b09a389 (diff)
downloaderlang.mk-8654d90d60224d3c92f3a3905d1331f9e00d608a.tar.gz
erlang.mk-8654d90d60224d3c92f3a3905d1331f9e00d608a.tar.bz2
erlang.mk-8654d90d60224d3c92f3a3905d1331f9e00d608a.zip
Add a lint command
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1580445..9242b80 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,9 @@ all:
| sed 's/^ERLANG_MK_VERSION =.*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' \
| sed 's:^ERLANG_MK_WITHOUT =.*:ERLANG_MK_WITHOUT = $(WITHOUT):' > $(ERLANG_MK)
+lint: all
+ $(MAKE) -f erlang.mk --warn-undefined-variables
+
ifdef p
# Remove p from the list of variables since that conflicts with bootstrapping.
MAKEOVERRIDES := $(filter-out p=$p,$(MAKEOVERRIDES))