summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/alpha/common/Makefile.common7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/boot/alpha/common/Makefile.common b/sys/boot/alpha/common/Makefile.common
index fb2fc91..616e92a 100644
--- a/sys/boot/alpha/common/Makefile.common
+++ b/sys/boot/alpha/common/Makefile.common
@@ -58,9 +58,12 @@ ${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o setdef0.o
${BASE}.help: help.common help.alpha
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
-.ifdef INSTALL_HELP
beforeinstall:
-.if exists(${.OBJDIR}/loader.help)
+.if exists(${DESTDIR}/boot/${BASE})
+ mv ${DESTDIR}/boot/${BASE} ${DESTDIR}/boot/${BASE}.old
+.endif
+.ifdef INSTALL_HELP
+.if exists(${.OBJDIR}/${BASE}.help)
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
.else
OpenPOWER on IntegriCloud