Explicitly specify `all' as the default target(as it used to be), so as
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Wed, 17 Aug 2005 02:51:45 +0000 (02:51 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Wed, 17 Aug 2005 02:51:45 +0000 (02:51 +0000)
issuing make command without target name in the kernel build directory
won't end up building the first target.

Reported-by: Noritoshi Demizu
sys/conf/Makefile.amd64
sys/conf/Makefile.i386

index 877a65d..93b5c12 100644 (file)
@@ -1,7 +1,7 @@
 # Makefile.amd64 -- with config changes.
 # Copyright 1990 W. Jolitz
 #      from: @(#)Makefile.i386 7.1 5/10/91
-# $DragonFly: src/sys/conf/Attic/Makefile.amd64,v 1.7 2005/08/16 10:31:35 y0netan1 Exp $
+# $DragonFly: src/sys/conf/Attic/Makefile.amd64,v 1.8 2005/08/17 02:51:45 y0netan1 Exp $
 #
 # Makefile for DragonFly BSD
 #
@@ -23,6 +23,9 @@
 KERNEL?=       kernel
 STD8X16FONT?=  iso
 
+# build this target if none is specified on the command line
+.MAIN: all
+
 .if !defined(S)
 .if exists(./@/.)
 S=     ./@
index 6bdad5d..f0f4c09 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright 1990 W. Jolitz
 #      from: @(#)Makefile.i386 7.1 5/10/91
 # $FreeBSD: src/sys/conf/Makefile.i386,v 1.179.2.16 2002/11/18 11:26:49 ru Exp $
-# $DragonFly: src/sys/conf/Attic/Makefile.i386,v 1.22 2005/08/16 10:31:35 y0netan1 Exp $
+# $DragonFly: src/sys/conf/Attic/Makefile.i386,v 1.23 2005/08/17 02:51:45 y0netan1 Exp $
 #
 # Makefile for DragonFly BSD
 #
@@ -30,6 +30,9 @@
 KERNEL?=       kernel
 STD8X16FONT?=  iso
 
+# build this target if none is specified on the command line
+.MAIN: all
+
 .if !defined(S)
 .if exists(./@/.)
 S=     ./@