aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/alpha')
-rw-r--r--sys/boot/alpha/common/Makefile.common8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/boot/alpha/common/Makefile.common b/sys/boot/alpha/common/Makefile.common
index 72f8be27d731..ccfbbdc142f4 100644
--- a/sys/boot/alpha/common/Makefile.common
+++ b/sys/boot/alpha/common/Makefile.common
@@ -40,7 +40,7 @@ CRT= start.o
STRIP=
BINDIR?= /boot
-all: ${BASE}
+all: ${BASE} ${.OBJDIR}/loader.4th
vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
@@ -59,6 +59,10 @@ CLEANFILES+= ${BASE}.help
${BASE}.help: help.common help.alpha
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
+CLEANFILES+= ${.OBJDIR}/loader.4th
+${.OBJDIR}/loader.4th: ${.CURDIR}/../../forth/loader.4th
+ grep -v 'dict' ${.ALLSRC} > ${.TARGET}
+
beforeinstall:
.if exists(${DESTDIR}/boot/${BASE})
mv ${DESTDIR}/boot/${BASE} ${DESTDIR}/boot/${BASE}.old
@@ -77,7 +81,7 @@ beforeinstall:
${.CURDIR}/../../forth/loader.rc ${DESTDIR}/boot
.endif
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.CURDIR}/../../forth/loader.4th ${DESTDIR}/boot
+ ${.OBJDIR}/loader.4th ${DESTDIR}/boot
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/../../forth/support.4th ${DESTDIR}/boot
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \