commit: f65ba33816c02395b5da81abf24886caecba734d
parent: 06c39c629bef333866034b8275f41d4aa9c65aba
author: Charlotte Koch <cfkoch@edgebsd.org>
date: Tue, 6 Feb 2018 20:17:22 -0800
Add proper DESTDIR support for staged installst.
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
@@ -586,14 +586,18 @@ all: \${PROG}
\${CC} \${LDFLAGS} -o \${PROG} \${OBJS}
install:
- install -c -s -m 755 \${PROG} \${PREFIX}/bin
- install -c -m 644 oksh.1 \${MANDIR}/man1/\${PROG}.1
+ install -d \${DESTDIR}\${PREFIX}/bin
+ install -d \${DESTDIR}\${MANDIR}/man1
+ install -c -s -m 755 \${PROG} \${DESTDIR}\${PREFIX}/bin
+ install -c -m 644 oksh.1 \${DESTDIR}\${MANDIR}/man1/\${PROG}.1
EOF
if [ $instsh -ne 0 ] ; then
cat << EOF >> Makefile
- install -c -s -m 755 \${PROG} \${PREFIX}/bin/sh
- install -c -m 644 sh.1 \${MANDIR}/man1
+ install -d \${DESTDIR}\${PREFIX}/bin
+ install -d \${DESTDIR}\${MANDIR}/man1
+ install -c -s -m 755 \${PROG} \${DESTDIR}\${PREFIX}/bin/sh
+ install -c -m 644 sh.1 \${DESTDIR}\${MANDIR}/man1
EOF
fi