aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-08-05 14:27:44 +1000
committerHisham Muhammad <hisham@gobolinux.org>2018-08-10 20:57:40 -0300
commite8f06569465bf8c99a8b1538044ab8df274758da (patch)
tree3ba0ee7831cdde182b3fe867be5a5f4c195c7d5d
parent29f544b7269406af115072a25a1cef15c7053d5f (diff)
downloadluarocks-e8f06569465bf8c99a8b1538044ab8df274758da.tar.gz
luarocks-e8f06569465bf8c99a8b1538044ab8df274758da.tar.bz2
luarocks-e8f06569465bf8c99a8b1538044ab8df274758da.zip
Makefile: add uninstall target
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a96091ee..d365454a 100644
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,12 @@ luarocks-admin: config.unix
89# Regular install 89# Regular install
90# ---------------------------------------- 90# ----------------------------------------
91 91
92install: $(DESTDIR)$(bindir)/luarocks $(DESTDIR)$(bindir)/luarocks-admin $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua $(patsubst src/%, $(DESTDIR)$(luadir)/%, $(LUAROCKS_FILES)) 92INSTALL_FILES = $(DESTDIR)$(bindir)/luarocks \
93 $(DESTDIR)$(bindir)/luarocks-admin \
94 $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua \
95 $(patsubst src/%, $(DESTDIR)$(luadir)/%, $(LUAROCKS_FILES))
96
97install: $(INSTALL_FILES)
93 98
94$(DESTDIR)$(bindir)/luarocks: ./build/luarocks 99$(DESTDIR)$(bindir)/luarocks: ./build/luarocks
95 $(INSTALL) -D "$<" "$@" 100 $(INSTALL) -D "$<" "$@"
@@ -103,6 +108,9 @@ $(DESTDIR)$(luadir)/luarocks/%.lua: src/luarocks/%.lua
103$(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua: config-$(LUA_VERSION).lua.in 108$(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua: config-$(LUA_VERSION).lua.in
104 $(INSTALL_DATA) -D "$<" "$@" 109 $(INSTALL_DATA) -D "$<" "$@"
105 110
111uninstall:
112 rm -rf $(INSTALL_FILES)
113
106# ---------------------------------------- 114# ----------------------------------------
107# Binary build 115# Binary build
108# ---------------------------------------- 116# ----------------------------------------