Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/conf put an explicit .MAIN target before th...
details: https://anonhg.NetBSD.org/src/rev/ae0ff4f4de00
branches: trunk
changeset: 536071:ae0ff4f4de00
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Sep 06 06:16:57 2002 +0000
description:
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
diffstat:
sys/arch/sparc64/conf/Makefile.sparc64 | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 926d0c85fcd5 -r ae0ff4f4de00 sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64 Fri Sep 06 05:36:14 2002 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64 Fri Sep 06 06:16:57 2002 +0000
@@ -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 @@
## (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 && \
Home |
Main Index |
Thread Index |
Old Index