diff options
| -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 | # ---------------------------------------- |
