summaryrefslogtreecommitdiff
path: root/Makefile.luarocks
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.luarocks')
-rw-r--r--Makefile.luarocks16
1 files changed, 0 insertions, 16 deletions
diff --git a/Makefile.luarocks b/Makefile.luarocks
deleted file mode 100644
index f0652891..00000000
--- a/Makefile.luarocks
+++ /dev/null
@@ -1,16 +0,0 @@
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 site_config="site_config_$(echo "$luaver" | sed 's,\.,_,').lua"
16 lprefix=$(echo "$(LUADIR)" | sed 's,/lib/luarocks/.*,,'); sed "s,LUAROCKS_PREFIX=.*,LUAROCKS_PREFIX=[[$$lprefix]],g" "$(LUAROCKS_PREFIX)/share/lua/$$luaver/luarocks/core/$$site_config" > "$(DESTDIR)$(LUADIR)/luarocks/core/$$site_config"