Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks.
This commit is contained in:
parent
60646c8d46
commit
419dfdd76b
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile.mbr,v 1.9 2006/06/25 14:35:18 lukem Exp $
|
# $NetBSD: Makefile.mbr,v 1.10 2006/06/29 06:24:50 lukem Exp $
|
||||||
|
|
||||||
S= ${.CURDIR}/../../../../../
|
S= ${.CURDIR}/../../../../../
|
||||||
|
|
||||||
|
@ -28,22 +28,10 @@ LDFLAGS+= -Wl,-m,elf_i386
|
||||||
AFLAGS+= -m32
|
AFLAGS+= -m32
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !make(obj) && !make(clean) && !make(cleandir)
|
BUILDSYMLINKS+= $S/arch/i386/include machine \
|
||||||
.NOPATH: machine x86
|
$S/arch/x86/include x86
|
||||||
.endif
|
|
||||||
|
|
||||||
depend realall: machine x86
|
DPSRCS+= machine x86
|
||||||
CLEANFILES+= machine x86
|
|
||||||
|
|
||||||
machine::
|
|
||||||
-rm -f $@
|
|
||||||
ln -s $S/arch/i386/include $@
|
|
||||||
|
|
||||||
x86::
|
|
||||||
-rm -f $@
|
|
||||||
ln -s $S/arch/x86/include $@
|
|
||||||
|
|
||||||
${OBJS}: machine x86
|
|
||||||
|
|
||||||
CLEANFILES+= ${PROG}.tmp
|
CLEANFILES+= ${PROG}.tmp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue