diff options
author | daurnimator <quae@daurnimator.com> | 2018-08-05 12:24:57 +1000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-10 16:52:18 -0300 |
commit | 0bf6fac7609b2570019c418315a1ef5bf2aa0073 (patch) | |
tree | 02d240bba2e35d0cc9a216278d33329c150cf91d | |
parent | bcee11414737b0f764537768b036e52d40ac2eaa (diff) | |
download | luarocks-0bf6fac7609b2570019c418315a1ef5bf2aa0073.tar.gz luarocks-0bf6fac7609b2570019c418315a1ef5bf2aa0073.tar.bz2 luarocks-0bf6fac7609b2570019c418315a1ef5bf2aa0073.zip |
Makefile: Use INSTALL_DATA to install config file
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,6 +2,7 @@ | |||
2 | -include config.unix | 2 | -include config.unix |
3 | 3 | ||
4 | INSTALL ?= install | 4 | INSTALL ?= install |
5 | INSTALL_DATA ?= $(INSTALL) -m 644 | ||
5 | 6 | ||
6 | 7 | ||
7 | all: build | 8 | all: build |
@@ -66,8 +67,7 @@ $(DESTDIR)$(prefix)/bin/luarocks-admin: ./build/luarocks-admin | |||
66 | $(INSTALL) -D "$<" "$@" | 67 | $(INSTALL) -D "$<" "$@" |
67 | 68 | ||
68 | $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua: config-$(LUA_VERSION).lua.in | 69 | $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua: config-$(LUA_VERSION).lua.in |
69 | mkdir -p "$(DESTDIR)$(luarocksconfdir)" | 70 | $(INSTALL_DATA) -D "$<" "$@" |
70 | cp config-$(LUA_VERSION).lua.in "$(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua" | ||
71 | 71 | ||
72 | # ---------------------------------------- | 72 | # ---------------------------------------- |
73 | # Binary build | 73 | # Binary build |