aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-06-20 23:50:30 +0200
committerLoïc Hoguin <[email protected]>2015-06-20 23:50:30 +0200
commitf2cd401b7dc23b66fff5ff3a6d95ddb44338de02 (patch)
tree97db3375f8a5a12c0a59c62e293a7e1b96257b0c /core/deps.mk
parent6cf4946739bd8eee5736e00e42fdd218f698f6d7 (diff)
downloaderlang.mk-f2cd401b7dc23b66fff5ff3a6d95ddb44338de02.tar.gz
erlang.mk-f2cd401b7dc23b66fff5ff3a6d95ddb44338de02.tar.bz2
erlang.mk-f2cd401b7dc23b66fff5ff3a6d95ddb44338de02.zip
Fix 'make' and 'gmake' calls in rebar hooks
$(MAKE) works everywhere, including space.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 09ceb7b..e1fd8c7 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -281,10 +281,10 @@ define dep_autopatch_rebar.erl
Write("\npre-app::\n"),
PatchHook = fun(Cmd) ->
case Cmd of
- "make -C" ++ _ -> Escape(Cmd);
- "gmake -C" ++ _ -> Escape(Cmd);
- "make " ++ Cmd1 -> "make -f Makefile.orig.mk " ++ Escape(Cmd1);
- "gmake " ++ Cmd1 -> "gmake -f Makefile.orig.mk " ++ Escape(Cmd1);
+ "make -C" ++ Cmd1 -> "$$$$\(MAKE) -C" ++ Escape(Cmd1);
+ "gmake -C" ++ Cmd1 -> "$$$$\(MAKE) -C" ++ Escape(Cmd1);
+ "make " ++ Cmd1 -> "$$$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
+ "gmake " ++ Cmd1 -> "$$$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
_ -> Escape(Cmd)
end
end,