From 8b77a9070a0d8740045e34bf80073d541ff92e15 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Fri, 6 Sep 2002 06:16:57 +0000 Subject: [PATCH] put an explicit .MAIN target before the .if make() condition; apparently .MAIN must be defined for the implicit target rule to kick in this fixes compilation with call like 'make', i.e. without specified target another option would be to move the .if make() condition after config(8) generated goo, since config(8) implicitly generates a .MAIN: directive too, but the MD .if make() really belongs into (7) misc settings section IMHO --- sys/arch/sparc64/conf/Makefile.sparc64 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64 index 3a52666837c0..cdbe1f8ae14e 100644 --- a/sys/arch/sparc64/conf/Makefile.sparc64 +++ b/sys/arch/sparc64/conf/Makefile.sparc64 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.sparc64,v 1.47 2002/07/20 11:48:17 mrg Exp $ +# $NetBSD: Makefile.sparc64,v 1.48 2002/09/06 06:16:57 jdolecek Exp $ #========================================================================= # @@ -118,6 +118,10 @@ machdep.o mem.o openprom.o pmap.o vm_machdep.o: Makefile ## (7) misc settings ## +# define .MAIN _before_ the make() check, so that implicit target +# would be defined +.MAIN: all + .if make(depend) || make(all) || make(dependall) .BEGIN: @rm -f sparc && \