Change install' to ${INSTALL}' as usual.

Nuke potential for mkdir'ing /usr/lib.

Don't move the the target to a backup file before installing it.  This will
defeat `install -C'.
This commit is contained in:
Bruce Evans 1995-07-25 00:17:05 +00:00
parent db1e9e9ea9
commit c2471061b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9699

View File

@ -21,10 +21,7 @@ MAN5 = man5/keycap.${MAN5EXT}
#CLEANFILES+= keycap.0 man5/keycap.0
beforeinstall:
@if [ ! -d ${LIBDIR} ]; then mkdir ${LIBDIR};fi
@${ECHO} "Saving old keycap database"
-mv -f ${DESTDIR}${CAPPATH} ${DESTDIR}${CAPPATH}.BAK
install -c -m ${LIBMODE} -o ${LIBOWN} -g ${LIBGRP} \
${INSTALL} -c -m ${LIBMODE} -o ${LIBOWN} -g ${LIBGRP} \
${.CURDIR}/${KEYCAPSRC} ${DESTDIR}${CAPPATH}
.include <bsd.lib.mk>