Subject: misc/2294: NOGAMES to control build/install of games tree
To: None <gnats-bugs@NetBSD.ORG>
From: Daniel Carosone <dan@geek.com.au>
List: netbsd-bugs
Date: 04/03/1996 13:23:28
>Number:         2294
>Category:       misc
>Synopsis:       would be nice to be able to not build/install games
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr  2 22:35:01 1996
>Last-Modified:
>Originator:     Daniel Carosone
>Organization:
>Release:        today
>Environment:
	
System: NetBSD anarres 1.1A NetBSD 1.1A (_anarres_) #31: Mon Mar 4 13:12:35 EST 1996 dan@anarres:/fs/g/s/dan/NetBSD/src/sys/arch/i386/compile/_anarres_ i386


>Description:

There's no way to avoid compiling or installing the /usr/games
tree. This can be useful on slow or disk-poor machines. A better,
more general way of conditionally building and installing "profiles"
might be nice, but for now I'm doing this the easy way.

>How-To-Repeat:

obvious.

>Fix:

I've defined an environment variable NOGAMES, which works like
NOMAN or NOPROFILE. the following trivial patch to /usr/src/Makefile
implements the change:

Index: Makefile
===================================================================
RCS file: /home/g/l/nbfw/cvs/netbsd/src/Makefile,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 Makefile
*** Makefile	1996/03/19 23:26:51	1.1.1.2
--- Makefile	1996/03/23 08:55:51
***************
*** 2,8 ****
  
  # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
  
! SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games
  SUBDIR+= gnu
  
  SUBDIR+= sys
--- 2,11 ----
  
  # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
  
! SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share 
! .if !defined(NOGAMES)
! SUBDIR+=games
! .endif
  SUBDIR+= gnu
  
  SUBDIR+= sys
>Audit-Trail:
>Unformatted: