From cc67d9e5cd11f5b8645ecb7f05dc2423eb1c5c70 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 6 Sep 2001 19:12:35 +0000 Subject: use some make magic (borrowed from macppc) to build {obj/}machine --- sys/arch/sparc64/stand/libsa/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sys/arch/sparc64/stand/libsa') diff --git a/sys/arch/sparc64/stand/libsa/Makefile b/sys/arch/sparc64/stand/libsa/Makefile index f2c2c2f5034..0ac7a2fbbda 100644 --- a/sys/arch/sparc64/stand/libsa/Makefile +++ b/sys/arch/sparc64/stand/libsa/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2001/08/22 10:20:41 art Exp $ +# $OpenBSD: Makefile,v 1.3 2001/09/06 19:12:34 jason Exp $ LIB= sa @@ -34,13 +34,11 @@ ${OBJS}: ${.CURDIR}/../Makefile.inc NOPROFILE= NOPIC= -.NOPATH: machine -beforedepend: machine +.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir) && !make(obj) +.BEGIN: + @([ -h machine ] || ln -s ${.CURDIR}/../../include machine) +.endif install: .include - -machine: - rm -f machine - ln -s ${.CURDIR}/../../include machine -- cgit v1.2.3