diff options
author | daurnimator <quae@daurnimator.com> | 2018-08-05 14:27:44 +1000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-10 20:57:40 -0300 |
commit | e8f06569465bf8c99a8b1538044ab8df274758da (patch) | |
tree | 3ba0ee7831cdde182b3fe867be5a5f4c195c7d5d | |
parent | 29f544b7269406af115072a25a1cef15c7053d5f (diff) | |
download | luarocks-e8f06569465bf8c99a8b1538044ab8df274758da.tar.gz luarocks-e8f06569465bf8c99a8b1538044ab8df274758da.tar.bz2 luarocks-e8f06569465bf8c99a8b1538044ab8df274758da.zip |
Makefile: add uninstall target
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -89,7 +89,12 @@ luarocks-admin: config.unix | |||
89 | # Regular install | 89 | # Regular install |
90 | # ---------------------------------------- | 90 | # ---------------------------------------- |
91 | 91 | ||
92 | install: $(DESTDIR)$(bindir)/luarocks $(DESTDIR)$(bindir)/luarocks-admin $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua $(patsubst src/%, $(DESTDIR)$(luadir)/%, $(LUAROCKS_FILES)) | 92 | INSTALL_FILES = $(DESTDIR)$(bindir)/luarocks \ |
93 | $(DESTDIR)$(bindir)/luarocks-admin \ | ||
94 | $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua \ | ||
95 | $(patsubst src/%, $(DESTDIR)$(luadir)/%, $(LUAROCKS_FILES)) | ||
96 | |||
97 | install: $(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 | ||
111 | uninstall: | ||
112 | rm -rf $(INSTALL_FILES) | ||
113 | |||
106 | # ---------------------------------------- | 114 | # ---------------------------------------- |
107 | # Binary build | 115 | # Binary build |
108 | # ---------------------------------------- | 116 | # ---------------------------------------- |