From 0bf6fac7609b2570019c418315a1ef5bf2aa0073 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 5 Aug 2018 12:24:57 +1000 Subject: Makefile: Use INSTALL_DATA to install config file --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 97a2fca2..fa3ff4e8 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ -include config.unix INSTALL ?= install +INSTALL_DATA ?= $(INSTALL) -m 644 all: build @@ -66,8 +67,7 @@ $(DESTDIR)$(prefix)/bin/luarocks-admin: ./build/luarocks-admin $(INSTALL) -D "$<" "$@" $(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua: config-$(LUA_VERSION).lua.in - mkdir -p "$(DESTDIR)$(luarocksconfdir)" - cp config-$(LUA_VERSION).lua.in "$(DESTDIR)$(luarocksconfdir)/config-$(LUA_VERSION).lua" + $(INSTALL_DATA) -D "$<" "$@" # ---------------------------------------- # Binary build -- cgit v1.2.3-55-g6feb