aboutsummaryrefslogtreecommitdiff
path: root/Makefile.luarocks
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-17 22:27:20 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-17 22:27:20 -0300
commit855259b52e0e7c5ed81539c975dcaef4469797b9 (patch)
treedcab53fd1a4f31fda283faee19523e7e274b10f0 /Makefile.luarocks
parent92d63635a0cd0d336e65e9cd4a8e389bff406cc3 (diff)
downloadluarocks-855259b52e0e7c5ed81539c975dcaef4469797b9.tar.gz
luarocks-855259b52e0e7c5ed81539c975dcaef4469797b9.tar.bz2
luarocks-855259b52e0e7c5ed81539c975dcaef4469797b9.zip
New set of Makefiles for self-upgrade.
Diffstat (limited to 'Makefile.luarocks')
-rw-r--r--Makefile.luarocks15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.luarocks b/Makefile.luarocks
new file mode 100644
index 00000000..1eecfeae
--- /dev/null
+++ b/Makefile.luarocks
@@ -0,0 +1,15 @@
1
2include Makefile.setup.inc
3include Makefile.install.inc
4
5.PHONY: all install copy_site_config
6
7all:
8 @echo This Makefile is used by the LuaRocks rockspec for upgrading itself.
9
10install: install_bins install_luas copy_site_config
11
12copy_site_config:
13 luaver="$(LUA_VERSION)" && [ -n "$$luaver" ] || luaver=`$(LUA) -e 'print(_VERSION:sub(5))'`; \
14 mkdir -p "$(DESTDIR)$(LUADIR)/luarocks"; \
15 cp $(LUAROCKS_PREFIX)/share/lua/$$luaver/luarocks/site_config.lua "$(DESTDIR)$(LUADIR)/luarocks"