From 6f675f7be0a64512510be9e6ca51ac0ba0f6bc29 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 3 Apr 2005 04:58:15 +0000 Subject: [PATCH] Fix buidling of boot blocks for pc98 with new links. Submitted by: nyan@ --- sys/boot/pc98/boot2/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sys/boot/pc98/boot2/Makefile b/sys/boot/pc98/boot2/Makefile index de7e867a24de..7d2447a0be54 100644 --- a/sys/boot/pc98/boot2/Makefile +++ b/sys/boot/pc98/boot2/Makefile @@ -92,15 +92,23 @@ install: boot1 boot2 ${DESTDIR}${BINDIR} # If it's not there, don't consider it a target -.if exists(${.CURDIR}/../../../i386/include) +.if exists(${.CURDIR}/../../../pc98/include) beforedepend ${OBJS}: machine machine: - ln -sf ${.CURDIR}/../../../i386/include machine + ln -sf ${.CURDIR}/../../../pc98/include machine .endif -CLEANFILES+= machine +.if exists(${.CURDIR}/../../../i386/include) +beforedepend ${OBJS}: i386 + +i386: + ln -sf ${.CURDIR}/../../../i386/include i386 + +.endif + +CLEANFILES+= machine i386 .include "${.CURDIR}/../../../conf/kern.mk" .include