View | Details | Raw Unified | Return to bug 13398
Collapse All | Expand All

(-)Makefile.inc1 (-2 / +38 lines)
Lines 10-21 Link Here
10
#	-DNOCRYPT will prevent building of crypt versions
10
#	-DNOCRYPT will prevent building of crypt versions
11
#	-DNOPROFILE do not build profiled libraries
11
#	-DNOPROFILE do not build profiled libraries
12
#	-DNOSECURE do not go into secure subdir
12
#	-DNOSECURE do not go into secure subdir
13
#	-DSOMEGAMES install a limited subset (or ${WHICH_GAMES}) of the games
13
#	-DNOGAMES do not go into games subdir
14
#	-DNOGAMES do not go into games subdir
14
#	-DNOSHARE do not go into share subdir
15
#	-DNOSHARE do not go into share subdir
15
#	-DNOINFO do not make or install info files
16
#	-DNOINFO do not make or install info files
16
#	-DNOLIBC_R do not build libc_r.
17
#	-DNOLIBC_R do not build libc_r.
17
#	-DNO_FORTRAN do not build g77 and related libraries.
18
#	-DNO_FORTRAN do not build g77 and related libraries.
18
#	LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
19
#	LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
20
#	WHICH_GAMES="list of games" to build unless NOGAMES is defined.
19
21
20
#
22
#
21
# The intended user-driven targets are:
23
# The intended user-driven targets are:
Lines 54-59 Link Here
54
.if exists(${.CURDIR}/games) && !defined(NOGAMES)
56
.if exists(${.CURDIR}/games) && !defined(NOGAMES)
55
SUBDIR+= games
57
SUBDIR+= games
56
.endif
58
.endif
59
.if !defined(NOGAMES) && defined(WHICH_GAMES)
60
SOMEGAMES=	true
61
.endif
62
.if exists(${.CURDIR}/games) && !defined(NOGAMES) && defined(SOMEGAMES)
63
WHICH_GAMES?=	bcd \
64
		caesar \
65
		dm \
66
		factor \
67
		fortune \
68
		grdc \
69
		morse \
70
		number \
71
		pig \
72
		pom \
73
		ppt \
74
		primes \
75
		random
76
.endif
57
.if exists(${.CURDIR}/gnu)
77
.if exists(${.CURDIR}/gnu)
58
SUBDIR+= gnu
78
SUBDIR+= gnu
59
.endif
79
.endif
Lines 426-432 Link Here
426
	@echo "--------------------------------------------------------------"
446
	@echo "--------------------------------------------------------------"
427
	@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
447
	@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
428
	@echo "--------------------------------------------------------------"
448
	@echo "--------------------------------------------------------------"
429
	cd ${.CURDIR}; cvs -q update -P -d
449
	cd ${.CURDIR}; cvs -q update -P -d -A
430
.endif
450
.endif
431
451
432
#
452
#
Lines 764-775 Link Here
764
# Exclude unused tools from build-tools.
784
# Exclude unused tools from build-tools.
765
#
785
#
766
.if !defined(NOGAMES) && exists(${.CURDIR}/games)
786
.if !defined(NOGAMES) && exists(${.CURDIR}/games)
787
.if !empty(WHICH_GAMES:Madventure)
767
_adventure=	games/adventure
788
_adventure=	games/adventure
789
.endif
790
.if !empty(WHICH_GAMES:Mcaesar)
768
_caesar=	games/caesar
791
_caesar=	games/caesar
792
.endif
793
.if !empty(WHICH_GAMES:Mhack)
769
_hack=		games/hack
794
_hack=		games/hack
795
.endif
796
.if !empty(WHICH_GAMES:Mphantasia)
770
_phantasia=	games/phantasia
797
_phantasia=	games/phantasia
798
.endif
799
.if !empty(WHICH_GAMES:Mfortune)
771
_strfile=	games/fortune/strfile
800
_strfile=	games/fortune/strfile
772
.endif
801
.endif
802
.endif
773
.if !defined(NOPERL)
803
.if !defined(NOPERL)
774
_perl=		gnu/usr.bin/perl/miniperl
804
_perl=		gnu/usr.bin/perl/miniperl
775
.endif
805
.endif
Lines 871-877 Link Here
871
		${MAKE} ${BTMAKEFLAGS} -B install ${CLEANDIR} ${OBJDIR}
901
		${MAKE} ${BTMAKEFLAGS} -B install ${CLEANDIR} ${OBJDIR}
872
.endfor
902
.endfor
873
.if !defined(NOGAMES) && exists(${.CURDIR}/games)
903
.if !defined(NOGAMES) && exists(${.CURDIR}/games)
874
	cd ${DESTDIR}/usr/games; cp -p caesar strfile ${DESTDIR}/usr/bin
904
	cd ${DESTDIR}/usr/games
905
.if !empty(WHICH_GAMES:Mcaesar)
906
	cp -p caesar ${DESTDIR}/usr/bin
907
.endif
908
.if !empty(WHICH_GAMES:Mfortune)
909
	cp -p strfile ${DESTDIR}/usr/bin
910
.endif
875
.endif
911
.endif
876
.for d in				\
912
.for d in				\
877
		bin/sh			\
913
		bin/sh			\
(-)Makefile (+4 lines)
Lines 2-7 Link Here
2
#	$Id: Makefile,v 1.15 1998/08/30 20:58:16 gpalmer Exp $
2
#	$Id: Makefile,v 1.15 1998/08/30 20:58:16 gpalmer Exp $
3
3
4
# XXX missing: chess ching monop [copyright]
4
# XXX missing: chess ching monop [copyright]
5
.if defined(WHICH_GAMES)
6
SUBDIR=	${WHICH_GAMES}
7
.else
5
SUBDIR= adventure \
8
SUBDIR= adventure \
6
	arithmetic \
9
	arithmetic \
7
	atc \
10
	atc \
Lines 41-45 Link Here
41
	worm \
44
	worm \
42
	worms \
45
	worms \
43
	wump
46
	wump
47
.endif
44
48
45
.include <bsd.subdir.mk>
49
.include <bsd.subdir.mk>

Return to bug 13398