aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-08-05 12:24:57 +1000
committerHisham Muhammad <hisham@gobolinux.org>2018-08-10 16:52:18 -0300
commit0bf6fac7609b2570019c418315a1ef5bf2aa0073 (patch)
tree02d240bba2e35d0cc9a216278d33329c150cf91d
parentbcee11414737b0f764537768b036e52d40ac2eaa (diff)
downloadluarocks-0bf6fac7609b2570019c418315a1ef5bf2aa0073.tar.gz
luarocks-0bf6fac7609b2570019c418315a1ef5bf2aa0073.tar.bz2
luarocks-0bf6fac7609b2570019c418315a1ef5bf2aa0073.zip
Makefile: Use INSTALL_DATA to install config file
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 97a2fca2..fa3ff4e8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
2-include config.unix 2-include config.unix
3 3
4INSTALL ?= install 4INSTALL ?= install
5INSTALL_DATA ?= $(INSTALL) -m 644
5 6
6 7
7all: build 8all: 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