aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-08-28 20:34:54 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-08-28 20:34:54 -0300
commit4744dc4520e9129a8c98b76c63d341e0e66a7ca0 (patch)
tree3f52a4e3b5d351b8f0329e35c2d7c27a0f07ea7e /Makefile
parenta4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485 (diff)
downloadluarocks-4744dc4520e9129a8c98b76c63d341e0e66a7ca0.tar.gz
luarocks-4744dc4520e9129a8c98b76c63d341e0e66a7ca0.tar.bz2
luarocks-4744dc4520e9129a8c98b76c63d341e0e66a7ca0.zip
Should fix installation of parallel LuaRocks versions when using 'make bootstrap' on both.
Thanks to Philipp Janda for the test case!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index be83c012..1213a589 100644
--- a/Makefile
+++ b/Makefile
@@ -168,6 +168,11 @@ write_sysconfig: built
168install: install_bins install_luas install_site_config write_sysconfig 168install: install_bins install_luas install_site_config write_sysconfig
169 169
170bootstrap: src/luarocks/site_config.lua install_site_config write_sysconfig 170bootstrap: src/luarocks/site_config.lua install_site_config write_sysconfig
171 LUA_PATH="$$PWD/src/?.lua;$$LUA_PATH" src/bin/luarocks make rockspec --tree="$(PREFIX)" 171 if [ -n "$$LUA_PATH_5_2" ] ;\
172 then \
173 LUA_PATH="$$PWD/src/?.lua;$$LUA_PATH" LUA_PATH_5_2="$$PWD/src/?.lua;$$LUA_PATH_5_2" src/bin/luarocks make rockspec --tree="$(PREFIX)" ;\
174 else \
175 LUA_PATH="$$PWD/src/?.lua;$$LUA_PATH" src/bin/luarocks make rockspec --tree="$(PREFIX)" ;\
176 fi
172 177
173install_rock: install_bins install_luas 178install_rock: install_bins install_luas