FreeBSD Bugzilla – Attachment 5669 Details for
Bug 13398
Add WHICH_GAMES variable to src/Makefile.inc1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.11 KB, created by
Sheldon Hearn
on 1999-08-26 17:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Sheldon Hearn
Created:
1999-08-26 17:40:01 UTC
Size:
3.11 KB
patch
obsolete
>Index: Makefile.inc1 >=================================================================== >RCS file: /home/ncvs/src/Makefile.inc1,v >retrieving revision 1.81 >diff -u -d -r1.81 Makefile.inc1 >--- Makefile.inc1 1999/08/08 22:26:09 1.81 >+++ Makefile.inc1 1999/08/26 15:39:48 >@@ -10,12 +10,14 @@ > # -DNOCRYPT will prevent building of crypt versions > # -DNOPROFILE do not build profiled libraries > # -DNOSECURE do not go into secure subdir >+# -DSOMEGAMES install a limited subset (or ${WHICH_GAMES}) of the games > # -DNOGAMES do not go into games subdir > # -DNOSHARE do not go into share subdir > # -DNOINFO do not make or install info files > # -DNOLIBC_R do not build libc_r. > # -DNO_FORTRAN do not build g77 and related libraries. > # LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list >+# WHICH_GAMES="list of games" to build unless NOGAMES is defined. > > # > # The intended user-driven targets are: >@@ -54,6 +56,24 @@ > .if exists(${.CURDIR}/games) && !defined(NOGAMES) > SUBDIR+= games > .endif >+.if !defined(NOGAMES) && defined(WHICH_GAMES) >+SOMEGAMES= true >+.endif >+.if exists(${.CURDIR}/games) && !defined(NOGAMES) && defined(SOMEGAMES) >+WHICH_GAMES?= bcd \ >+ caesar \ >+ dm \ >+ factor \ >+ fortune \ >+ grdc \ >+ morse \ >+ number \ >+ pig \ >+ pom \ >+ ppt \ >+ primes \ >+ random >+.endif > .if exists(${.CURDIR}/gnu) > SUBDIR+= gnu > .endif >@@ -426,7 +446,7 @@ > @echo "--------------------------------------------------------------" > @echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT} > @echo "--------------------------------------------------------------" >- cd ${.CURDIR}; cvs -q update -P -d >+ cd ${.CURDIR}; cvs -q update -P -d -A > .endif > > # >@@ -764,12 +784,22 @@ > # Exclude unused tools from build-tools. > # > .if !defined(NOGAMES) && exists(${.CURDIR}/games) >+.if !empty(WHICH_GAMES:Madventure) > _adventure= games/adventure >+.endif >+.if !empty(WHICH_GAMES:Mcaesar) > _caesar= games/caesar >+.endif >+.if !empty(WHICH_GAMES:Mhack) > _hack= games/hack >+.endif >+.if !empty(WHICH_GAMES:Mphantasia) > _phantasia= games/phantasia >+.endif >+.if !empty(WHICH_GAMES:Mfortune) > _strfile= games/fortune/strfile > .endif >+.endif > .if !defined(NOPERL) > _perl= gnu/usr.bin/perl/miniperl > .endif >@@ -871,7 +901,13 @@ > ${MAKE} ${BTMAKEFLAGS} -B install ${CLEANDIR} ${OBJDIR} > .endfor > .if !defined(NOGAMES) && exists(${.CURDIR}/games) >- cd ${DESTDIR}/usr/games; cp -p caesar strfile ${DESTDIR}/usr/bin >+ cd ${DESTDIR}/usr/games >+.if !empty(WHICH_GAMES:Mcaesar) >+ cp -p caesar ${DESTDIR}/usr/bin >+.endif >+.if !empty(WHICH_GAMES:Mfortune) >+ cp -p strfile ${DESTDIR}/usr/bin >+.endif > .endif > .for d in \ > bin/sh \ >Index: games/Makefile >=================================================================== >RCS file: /home/ncvs/src/games/Makefile,v >retrieving revision 1.15 >diff -u -d -r1.15 Makefile >--- Makefile 1998/08/30 20:58:16 1.15 >+++ Makefile 1999/08/26 14:57:52 >@@ -2,6 +2,9 @@ > # $Id: Makefile,v 1.15 1998/08/30 20:58:16 gpalmer Exp $ > > # XXX missing: chess ching monop [copyright] >+.if defined(WHICH_GAMES) >+SUBDIR= ${WHICH_GAMES} >+.else > SUBDIR= adventure \ > arithmetic \ > atc \ >@@ -41,5 +44,6 @@ > worm \ > worms \ > wump >+.endif > > .include <bsd.subdir.mk>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13398
: 5669