Don't try and create/cleanup symlinks before objdirs are created.

Doesn't everyone use ro src?
This commit is contained in:
skrll 2005-12-28 08:04:44 +00:00
parent 5de69f0012
commit 504686f15c
2 changed files with 11 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2005/12/11 12:16:41 christos Exp $
# $NetBSD: Makefile,v 1.4 2005/12/28 08:04:44 skrll Exp $
.include <bsd.own.mk>
.include <bsd.sys.mk> # for ${HOST_SH}
@ -34,6 +34,7 @@ CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript
TEXTADDR= 0x80f00000
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine mips
.NOPATH: machine mips
@ -44,6 +45,7 @@ machine::
mips::
-rm -f $@
ln -s ${S}/arch/mips/include $@
.endif
CLEANFILES+= machine mips

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2005/12/11 12:18:19 christos Exp $
# $NetBSD: Makefile,v 1.16 2005/12/28 08:08:00 skrll Exp $
NOMAN= # defined
@ -12,16 +12,19 @@ CPPFLAGS+= -I${LIBSA} -I. -D__daddr_t=int32_t
# Need this to work in the miniroot
LDSTATIC= -static
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine
.NOPATH: machine
machine::
-rm -f $@
ln -s ${.CURDIR}/../../include $@
.endif
CLEANFILES+= machine
.PATH.c: ${LIBSA}
SRCS= installboot.c byteorder.c loadfile.c loadfile_aout.c loadfile_elf32.c
machine::
-rm -f $@
ln -s ${.CURDIR}/../../include $@
.include <bsd.prog.mk>