Browse Source

Add a lint command

Loïc Hoguin 7 years ago
parent
commit
8654d90d60
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -35,6 +35,9 @@ all:
 		| sed 's/^ERLANG_MK_VERSION =.*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' \
 		| sed 's/^ERLANG_MK_VERSION =.*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' \
 		| sed 's:^ERLANG_MK_WITHOUT =.*:ERLANG_MK_WITHOUT = $(WITHOUT):' > $(ERLANG_MK)
 		| sed 's:^ERLANG_MK_WITHOUT =.*:ERLANG_MK_WITHOUT = $(WITHOUT):' > $(ERLANG_MK)
 
 
+lint: all
+	$(MAKE) -f erlang.mk --warn-undefined-variables
+
 ifdef p
 ifdef p
 # Remove p from the list of variables since that conflicts with bootstrapping.
 # Remove p from the list of variables since that conflicts with bootstrapping.
 MAKEOVERRIDES := $(filter-out p=$p,$(MAKEOVERRIDES))
 MAKEOVERRIDES := $(filter-out p=$p,$(MAKEOVERRIDES))