From 43d3d3681ed3fd49defb57232c32d3ee3421beb8 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Thu, 5 Nov 2020 21:09:42 +0200 Subject: [PATCH] Makefile: replace install(1) with mkdir, rm, cp, chmod install(1) is missing in some systems, so replace it with POSIX tools. Closes #83. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d1e77a36..41dfc7c3 100644 --- a/Makefile +++ b/Makefile @@ -137,7 +137,10 @@ install-bin: meli *:${DESTDIR}${BINDIR}:*) echo -n "";; \ *) echo "\n${RED}${BOLD}WARNING${ANSI_RESET}: ${UNDERLINE}Path ${DESTDIR}${BINDIR} is not contained in your PATH variable.${ANSI_RESET} Consider adding it if necessary.\nPATH variable: ${PATH}";; \ esac - @install -D ./${CARGO_TARGET_DIR}/release/meli $(DESTDIR)${BINDIR}/meli + @mkdir -p $(DESTDIR)${BINDIR} + @rm -f $(DESTDIR)${BINDIR}/meli + @cp ./${CARGO_TARGET_DIR}/release/meli $(DESTDIR)${BINDIR}/meli + @chmod 755 $(DESTDIR)${BINDIR}/meli .PHONY: install