-# Makefile 4.15 84/12/03
+#
+# Copyright (c) 1980 Regents of the University of California.
+# All rights reserved. The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+# @(#)Makefile 5.1 (Berkeley) %G%
#
DESTDIR=
CFLAGS= -O
# Programs that live in subdirectories, and have makefiles of their own.
#
-SUBDIR= adventure backgammon battlestar boggle compat cribbage doctor fortune \
- hangman hunt mille monop quiz rogue sail snake trek zork
+SUBDIR= adventure backgammon battlestar boggle ching compat cribbage doctor \
+ fortune hangman hunt mille monop quiz robots rogue sail snake trek zork
# Shell scripts that need only be installed and are never removed.
#
-#SCRIPT=
+SCRIPT= wargames
# C programs that live in the current directory and do not need
# explicit make lines.
cc ${CFLAGS} -o $@ $@.c
install:
- for i in ${SUBDIR}; do \
+ -for i in ${SUBDIR}; do \
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
-# for i in ${SCRIPT}; do (install -c $$i ${DESTDIR}/usr/games/$$i); done
- for i in ${STD} ${NSTD}; do \
- (install -s $$i ${DESTDIR}/usr/games/$$i); \
- done
+ -for i in ${SCRIPT}; do \
+ (install -c $$i.sh ${DESTDIR}/usr/games/$$i); done
+ -for i in ${STD} ${NSTD}; do \
+ (install -s $$i ${DESTDIR}/usr/games/$$i); done
install -c chess.bin ${DESTDIR}/usr/games/lib/chess
cat >${DESTDIR}/usr/games/lib/cfscores </dev/null
chmod 777 ${DESTDIR}/usr/games/lib/cfscores
clean:
rm -f a.out core *.s *.o
- for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+ -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
rm -f ${STD} ${NSTD}
depend: