From 9d81705eb7de4c0ce398ada6e8464e33999f5aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 2 Sep 2015 19:08:25 +0200 Subject: erlc.mk: Use double-colon targets for source files targets When files are generated, this avoids a warning because the target would be redefined. --- core/erlc.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/erlc.mk') diff --git a/core/erlc.mk b/core/erlc.mk index 80affca..64c5fa2 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -179,7 +179,7 @@ define makedep.erl ({attribute, _, file, {Dep, _}}, Acc) -> AddHd(Dep, Acc); (_, Acc) -> Acc end, [], Forms)), - [F, ":", [[" ", D] || D <- Deps], "\n", CompileFirst(Deps)]; + [F, "::", [[" ", D] || D <- Deps], "\n", CompileFirst(Deps)]; {error, enoent} -> [] end @@ -204,7 +204,7 @@ endef ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(if $(strip $?),$(call compile_erl,$?)) -$(sort $(ERL_FILES) $(CORE_FILES)): +$(sort $(ERL_FILES) $(CORE_FILES)):: @touch $@ endif -- cgit v1.2.3 From abd896612215e5a5198f7388da5ad7346ac5c86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 2 Sep 2015 19:32:49 +0200 Subject: erlc.mk: Remove the target touching source files The touch(1) happens after `$(PROJECT).d` is generated. Therefore, with the next run of make, `$(PROJECT).d` is considered obsolete and recreated. Source files are touched again, and so on. This makes the whole project to be rebuilt with every run of make. --- core/erlc.mk | 3 --- 1 file changed, 3 deletions(-) (limited to 'core/erlc.mk') diff --git a/core/erlc.mk b/core/erlc.mk index 64c5fa2..f3fccd7 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -203,9 +203,6 @@ endef ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(if $(strip $?),$(call compile_erl,$?)) - -$(sort $(ERL_FILES) $(CORE_FILES)):: - @touch $@ endif clean:: clean-app -- cgit v1.2.3