17
17
ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST ) ) )
18
18
export ERLANG_MK_FILENAME
19
19
20
- ERLANG_MK_VERSION = 04c473a
20
+ ERLANG_MK_VERSION = b8a27ab
21
21
ERLANG_MK_WITHOUT =
22
22
23
23
# Make 3.81 and 3.82 are deprecated.
@@ -184,8 +184,9 @@ core_http_get = curl -Lf$(if $(filter-out 0,$(V)),,s)o $(call core_native_path,$
184
184
185
185
core_eq = $(and $(findstring $(1 ) ,$(2 ) ) ,$(findstring $(2 ) ,$(1 ) ) )
186
186
187
- # We skip files that contain spaces or '#' because they end up causing issues.
188
- core_find = $(if $(wildcard $1) ,$(shell find $(1:%/=% ) \( -type l -o -type f \) -name $(subst * ,\* ,$2) -not -name "* [ \#]* ") )
187
+ # We skip files that contain spaces because they end up causing issues.
188
+ # Files that begin with a dot are already ignored by the wildcard function.
189
+ core_find = $(foreach f,$(wildcard $(1:%/=% ) /* ) ,$(if $(wildcard $f/.) ,$(call core_find,$f,$2) ,$(if $(filter $(subst * ,% ,$2) ,$f) ,$(if $(wildcard $f) ,$f) ) ) )
189
190
190
191
core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$(1 ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
191
192
@@ -3564,8 +3565,10 @@ export DEPS_DIR
3564
3565
REBAR_DEPS_DIR = $(DEPS_DIR )
3565
3566
export REBAR_DEPS_DIR
3566
3567
3568
+ # When testing Erlang.mk and updating these, make sure
3569
+ # to delete test/test_rebar_git before running tests again.
3567
3570
REBAR3_GIT ?= https://github.com/erlang/rebar3
3568
- REBAR3_COMMIT ?= 3f563feaf1091a1980241adefa83a32dd2eebf7c # 3.20 .0
3571
+ REBAR3_COMMIT ?= bde4b54248d16280b2c70a244aca3bb7566e2033 # 3.23 .0
3569
3572
3570
3573
CACHE_DEPS ?= 0
3571
3574
@@ -4018,7 +4021,7 @@ define dep_autopatch_rebar.erl
4018
4021
false -> ok;
4019
4022
{_, Files0} ->
4020
4023
Files = [begin
4021
- hd(filelib:wildcard("$(call core_native_path,$(DEPS_DIR ) /$1/src/** /" ++ filename:rootname(F) ++ ".*rl") ))
4024
+ hd(filelib:wildcard("$(call core_native_path,$(DEPS_DIR ) /$1/src/) **/" ++ filename:rootname(F) ++ ".*rl"))
4022
4025
end || "src/" ++ F <- Files0],
4023
4026
Names = [[" ", case lists:reverse(F) of
4024
4027
"lre." ++ Elif -> lists:reverse(Elif);
@@ -4147,8 +4150,8 @@ define dep_autopatch_rebar.erl
4147
4150
"\t$$\(CC) -o $$\@ $$\? $$\(LDFLAGS) $$\(ERL_LDFLAGS) $$\(DRV_LDFLAGS) $$\(LDLIBS) $$\(EXE_LDFLAGS)",
4148
4151
case {filename:extension(Output), $(PLATFORM ) } of
4149
4152
{[], _} -> "\n";
4150
- {".so", darwin} -> "-shared\n";
4151
- {".dylib", darwin} -> "-shared\n";
4153
+ {".so", darwin} -> " -shared\n";
4154
+ {".dylib", darwin} -> " -shared\n";
4152
4155
{_, darwin} -> "\n";
4153
4156
_ -> " -shared\n"
4154
4157
end])
@@ -4665,7 +4668,6 @@ define makedep.erl
4665
4668
end,
4666
4669
MakeDepend = fun
4667
4670
(F, Fd, Mod, StartLocation) ->
4668
- {ok, Filename} = file:pid2name(Fd),
4669
4671
case io:parse_erl_form(Fd, undefined, StartLocation) of
4670
4672
{ok, AbsData, EndLocation} ->
4671
4673
case AbsData of
@@ -5493,7 +5495,7 @@ endif
5493
5495
$(verbose) mkdir config/
5494
5496
$(verbose) $(call core_render,bs_sys_config,config/sys.config)
5495
5497
$(verbose) $(call core_render,bs_vm_args,config/vm.args)
5496
- $(verbose) awk '/^include erlang.mk/ && !ins {print "BUILD_DEPS += relx";ins=1};{print}' Makefile > Makefile.bak
5498
+ $(verbose) awk '/^include erlang.mk/ && !ins {print "REL_DEPS += relx";ins=1};{print}' Makefile > Makefile.bak
5497
5499
$(verbose) mv Makefile.bak Makefile
5498
5500
5499
5501
new-app :
@@ -5838,7 +5840,7 @@ else
5838
5840
5839
5841
ci :: $(addprefix ci-,$(CI_OTP ) )
5840
5842
5841
- ci-prepare : $(addprefix $( KERL_INSTALL_DIR ) / ,$(CI_OTP ) )
5843
+ ci-prepare : $(addprefix ci-prepare- ,$(CI_OTP ) )
5842
5844
5843
5845
ci-setup ::
5844
5846
$(verbose ) :
@@ -5850,7 +5852,10 @@ ci_verbose_0 = @echo " CI " $(1);
5850
5852
ci_verbose = $(ci_verbose_$(V ) )
5851
5853
5852
5854
define ci_target
5853
- ci-$1: $(KERL_INSTALL_DIR ) /$2
5855
+ ci-prepare-$1: $(KERL_INSTALL_DIR ) /$2
5856
+ $(verbose ) :
5857
+
5858
+ ci-$1: ci-prepare-$1
5854
5859
$(verbose ) $(MAKE ) --no-print-directory clean
5855
5860
$(ci_verbose ) \
5856
5861
PATH="$(KERL_INSTALL_DIR ) /$2/bin:$(PATH ) " \
0 commit comments