summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-02-10 01:58:02 +0100
committerAlejandro Colomar <alx@kernel.org>2024-02-10 02:00:43 +0100
commitf756a22cdd105fca2c4e4b38e58ce0b0e6c7b87b (patch)
tree57af8b04dbc4e787f828a2ec505cbeb5a78d352a
parent01131d4d2feb3719c03791237394c1c3eaa44bbd (diff)
downloadliba2i-f756a22cdd105fca2c4e4b38e58ce0b0e6c7b87b.tar.gz
share/mk/: Configure $INSTALL in cmd.mk
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--share/mk/cmd.mk1
-rw-r--r--share/mk/install/_.mk4
2 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/cmd.mk b/share/mk/cmd.mk
index b3e8811..c552a90 100644
--- a/share/mk/cmd.mk
+++ b/share/mk/cmd.mk
@@ -13,6 +13,7 @@ ECHO := echo
FIND := find
GIT := git
GREP := grep
+INSTALL := install
LN := ln
MKDIR := mkdir
RM := rm
diff --git a/share/mk/install/_.mk b/share/mk/install/_.mk
index 32b8acb..ae090d4 100644
--- a/share/mk/install/_.mk
+++ b/share/mk/install/_.mk
@@ -6,6 +6,9 @@ ifndef MAKEFILE_INSTALL_INCLUDED
MAKEFILE_INSTALL_INCLUDED := 1
+include $(MAKEFILEDIR)/cmd.mk
+
+
DESTDIR :=
prefix := /usr/local
exec_prefix := $(prefix)/
@@ -36,7 +39,6 @@ _man3headdir := $(DESTDIR)$(man3headdir)
_includedirs := $(patsubst $(INCLUDEDIR)/%,$(_includedir)/%/,$(TU_DIRS))
-INSTALL := install
INSTALL_DATA := $(INSTALL) -m 644
INSTALL_DIR := $(INSTALL) -m 755 -d
INSTALL_PROGRAM := $(INSTALL) -m 755