diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-08-28 20:34:54 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-08-28 20:34:54 -0300 |
commit | 4744dc4520e9129a8c98b76c63d341e0e66a7ca0 (patch) | |
tree | 3f52a4e3b5d351b8f0329e35c2d7c27a0f07ea7e /Makefile | |
parent | a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485 (diff) | |
download | luarocks-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-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -168,6 +168,11 @@ write_sysconfig: built | |||
168 | install: install_bins install_luas install_site_config write_sysconfig | 168 | install: install_bins install_luas install_site_config write_sysconfig |
169 | 169 | ||
170 | bootstrap: src/luarocks/site_config.lua install_site_config write_sysconfig | 170 | bootstrap: 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 | ||
173 | install_rock: install_bins install_luas | 178 | install_rock: install_bins install_luas |