commit 4b99778344bca3a1606046b5bf1087160ea1661c
parent 19957bc272e745af7b56b79fa648e8b6b77113b1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 9 Sep 2024 16:43:28 +0200
Makefile: on install do not follow symlinks and just copy them
By default this is not needed, but it is used for my local script to bundle the
sfeed tools and compile/link and symlink them in a compact way (similar to
busybox).
The -R flag is needed on OpenBSD, because it ignores -P if the -R flag is not
specified. This issue is reported upstream, because POSIX defines -P can be
used without the -R flag.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -146,7 +146,7 @@ clean:
install: all
# installing executable files and scripts.
mkdir -p "${DESTDIR}${PREFIX}/bin"
- cp -f ${BIN} ${SCRIPTS} "${DESTDIR}${PREFIX}/bin"
+ cp -fRP ${BIN} ${SCRIPTS} "${DESTDIR}${PREFIX}/bin"
for f in ${BIN} ${SCRIPTS}; do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"; done
# installing example files.
mkdir -p "${DESTDIR}${DOCPREFIX}"