From 1a2e7f14aafaac1209458dcedebd4fe723e0f302 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Wed, 12 Apr 2017 12:35:52 +0200 Subject: [tools/make] Add current directory to include path This is to ensure that files are recompiled if a .hrl file in the current directory is changed. --- lib/tools/src/make.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/tools/src/make.erl') diff --git a/lib/tools/src/make.erl b/lib/tools/src/make.erl index 60695febb4..0363dee02d 100644 --- a/lib/tools/src/make.erl +++ b/lib/tools/src/make.erl @@ -290,11 +290,12 @@ coerce_2_list(X) when is_atom(X) -> coerce_2_list(X) -> X. -%%% If you an include file is found with a modification +%%% If an include file is found with a modification %%% time larger than the modification time of the object %%% file, return true. Otherwise return false. check_includes(File, IncludePath, ObjMTime) -> - Path = [filename:dirname(File)|IncludePath], + {ok,Cwd} = file:get_cwd(), + Path = [Cwd,filename:dirname(File)|IncludePath], case epp:open(File, Path, []) of {ok, Epp} -> check_includes2(Epp, File, ObjMTime); -- cgit v1.2.3