diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-17 22:27:20 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-17 22:27:20 -0300 |
commit | 855259b52e0e7c5ed81539c975dcaef4469797b9 (patch) | |
tree | dcab53fd1a4f31fda283faee19523e7e274b10f0 /Makefile.luarocks | |
parent | 92d63635a0cd0d336e65e9cd4a8e389bff406cc3 (diff) | |
download | luarocks-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.luarocks | 15 |
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 | |||
2 | include Makefile.setup.inc | ||
3 | include Makefile.install.inc | ||
4 | |||
5 | .PHONY: all install copy_site_config | ||
6 | |||
7 | all: | ||
8 | @echo This Makefile is used by the LuaRocks rockspec for upgrading itself. | ||
9 | |||
10 | install: install_bins install_luas copy_site_config | ||
11 | |||
12 | copy_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" | ||