From 551f92737f2f20b43f45c5324eb9bdf55c6a2621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 14 May 2018 15:46:58 +0200 Subject: Small tweaks to previous PR --- core/erlc.mk | 2 -- test/core_app.mk | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/erlc.mk b/core/erlc.mk index e73c2e4..353f13b 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -265,8 +265,6 @@ define makedep.erl halt() endef -## TODO: Analyze if it is possible to use erlc -M instead of makedep.erl -## e.g.: erlc -M -MG -MF $@ -I $(APPS_DIR) -I $(DEPS_DIR) -I include/ src/* ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),) $(PROJECT).d:: $(ERL_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST) $(makedep_verbose) $(call erlang,$(call makedep.erl,$@)) diff --git a/test/core_app.mk b/test/core_app.mk index f1ec83b..42927c1 100644 --- a/test/core_app.mk +++ b/test/core_app.mk @@ -34,7 +34,7 @@ CORE_APP_CASES = appsrc-change \ hrl-multiapps-include-lib-recursive \ hrl-include-lib-src \ hrl-include-lib-src-recursive \ - hlr-deps \ + hrl-deps \ hrl-include-loop \ hrl-include_lib-loop \ hrl-include-loop-define-protected \ @@ -1980,6 +1980,7 @@ endif halt()" core-app-hrl-multiapps-include-lib: build clean + $i "Create a multi application repository with no root application" $t mkdir $(APP)/ $t cp ../erlang.mk $(APP)/ @@ -2083,6 +2084,7 @@ endif halt()" core-app-hrl-multiapps-include-lib-recursive: build clean + $i "Create a multi application repository with no root application" $t mkdir $(APP)/ $t cp ../erlang.mk $(APP)/ @@ -2364,7 +2366,8 @@ endif [{module, M} = code:load_file(M) || M <- Mods], \ halt()" -core-app-hlr-deps: build clean +core-app-hrl-deps: build clean + $i "Create a multi application repository with no root application" $t mkdir $(APP)/ $t cp ../erlang.mk $(APP)/ @@ -2552,6 +2555,7 @@ core-app-hrl-include_lib-loop-define-protected: build clean $t grep "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d core-app-hrl-multiapps-include-loop-define-protected: build clean + $i "Create a multi application repository with no root application" $t mkdir $(APP)/ $t cp ../erlang.mk $(APP)/ -- cgit v1.2.3