Make install fix: install the actual compiled layout

This commit is contained in:
Maarten van Gompel 2020-09-16 16:07:31 +02:00 committed by Hiltjo Posthuma
parent 025a846cea
commit 3a51eafd3a

View File

@ -3,7 +3,7 @@
.POSIX: .POSIX:
NAME = svkbd NAME = svkbd
VERSION = 0.2 VERSION = 0.2.1
include config.mk include config.mk
@ -50,11 +50,8 @@ dist:
install: all install: all
mkdir -p ${DESTDIR}${PREFIX}/bin mkdir -p ${DESTDIR}${PREFIX}/bin
for i in ${NAME}-??; \ cp ${NAME}-${LAYOUT} ${DESTDIR}${PREFIX}/bin
do \ chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}-${LAYOUT}
cp $$i ${DESTDIR}${PREFIX}/bin; \
chmod 755 ${DESTDIR}${PREFIX}/bin/$$i; \
done
mkdir -p "${DESTDIR}${MANPREFIX}/man1" mkdir -p "${DESTDIR}${MANPREFIX}/man1"
sed "s/VERSION/${VERSION}/g" < ${MAN1} > ${DESTDIR}${MANPREFIX}/man1/${MAN1} sed "s/VERSION/${VERSION}/g" < ${MAN1} > ${DESTDIR}${MANPREFIX}/man1/${MAN1}
chmod 644 ${DESTDIR}${MANPREFIX}/man1/${MAN1} chmod 644 ${DESTDIR}${MANPREFIX}/man1/${MAN1}