Subject: bin/6999: Omission in gnu/games/chess/Makefile
To: None <gnats-bugs@gnats.netbsd.org>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-bugs
Date: 02/13/1999 23:12:59
>Number:         6999
>Category:       bin
>Synopsis:       make build fails at gnu/games/chess
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 13 21:20:00 1999
>Last-Modified:
>Originator:     Frederick Bruckman
>Organization:

>Release:        Sat, Feb 13, 1999
>Environment:
	
System: NetBSD corwin.home 1.3I NetBSD 1.3I (CORWIN) #4: Sat Feb 13 14:48:15 CST 1999 fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/CORWIN mac68k


>Description:
	
	root-> cd /usr/src/gnu/games/chess ; make cleandir
	"Makefile", line 10: Malformed conditional (${MKSHARE} != "no")
	"Makefile", line 13: if-less endif
	"Makefile", line 13: Need an operator
	Fatal errors encountered -- cannot continue

>How-To-Repeat:
	Install makefiles from /usr/src/share/mk; as above.
	
>Fix:
	
	bsd.own.mk needs to be included _before_ testing MKSHARE. 
	Note: because of the order that the make variables are pulled in, 
	no error is noted if MKSHARE is set to the desired preference on 
	the command line, as in `make MKSHARE=yes build', or even 
	`MKSHARE=yes make build'.

--- /usr/src/gnu/games/chess/Makefile.orig	Sat Feb 13 06:09:25 1999
+++ /usr/src/gnu/games/chess/Makefile	Sat Feb 13 14:12:29 1999
@@ -1,6 +1,8 @@
 #	$NetBSD: Makefile,v 1.17 1999/02/13 02:54:22 lukem Exp $
 #	from: @(#)Makefile	5.4 (Berkeley) 5/11/90
 
+.include <bsd.own.mk>		#for MKSHARE definition
+
 PROG=	chess
 SRCS=	gnuchess.c uxdsp.c move.c
 CPPFLAGS+=-DNEWMOVE=12

>Audit-Trail:
>Unformatted: