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
This commit is contained in:
parent
5d2cdf0811
commit
8b77a9070a
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user