add manual page, cleanup
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 21 Oct 1988 03:46:31 +0000 (19:46 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 21 Oct 1988 03:46:31 +0000 (19:46 -0800)
SCCS-vsn: games/trek/Makefile 5.6
SCCS-vsn: games/quiz/Makefile 4.6

usr/src/games/quiz/Makefile
usr/src/games/trek/Makefile

index 6eba32e..9c1d17e 100644 (file)
@@ -1,46 +1,52 @@
 #
 #
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# Copyright (c) 1987 The Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    4.5     (Berkeley)      %G%
+# Redistribution and use in source and binary forms are permitted
+# provided that the above copyright notice and this paragraph are
+# duplicated in all such forms and that any documentation,
+# advertising materials, and other materials related to such
+# distribution and use acknowledge that the software was developed
+# by the University of California, Berkeley.  The name of the
+# University may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+#      @(#)Makefile    4.6 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  quiz.c
 OBJS=
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  quiz.c
 OBJS=
+MAN=   quiz.0
 
 all: quiz
 
 quiz: ${LIBC}
 
 all: quiz
 
 quiz: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${SRCS}
+       ${CC} -o $@ ${CFLAGS} $@.c
 
 
-clean: FRC
+clean:
        rm -f ${OBJS} core quiz
 
        rm -f ${OBJS} core quiz
 
-depend: FRC
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
        mkdep -p ${CFLAGS} ${SRCS}
 
        mkdep -p ${CFLAGS} ${SRCS}
 
-install: FRC
+install: ${MAN}
        -[ -d ${DESTDIR}/usr/games/lib/quiz.k ] || mkdir ${DESTDIR}/usr/games/lib/quiz.k
        chmod 700 ${DESTDIR}/usr/games/lib/quiz.k
        chown games.bin ${DESTDIR}/usr/games/lib/quiz.k
        cd quiz.k; install -c -o games -g bin -m 400 * ${DESTDIR}/usr/games/lib/quiz.k
        install -s -o games -g bin -m 700 quiz ${DESTDIR}/usr/games/hide
        (cd ${DESTDIR}/usr/games; rm -f quiz; ln -s dm quiz; chown games.bin quiz)
        -[ -d ${DESTDIR}/usr/games/lib/quiz.k ] || mkdir ${DESTDIR}/usr/games/lib/quiz.k
        chmod 700 ${DESTDIR}/usr/games/lib/quiz.k
        chown games.bin ${DESTDIR}/usr/games/lib/quiz.k
        cd quiz.k; install -c -o games -g bin -m 400 * ${DESTDIR}/usr/games/lib/quiz.k
        install -s -o games -g bin -m 700 quiz ${DESTDIR}/usr/games/hide
        (cd ${DESTDIR}/usr/games; rm -f quiz; ln -s dm quiz; chown games.bin quiz)
+       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
 
 
-lint: FRC
+lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
 
        lint ${CFLAGS} ${SRCS}
 
-tags: FRC
+tags: ${SRCS}
        ctags ${SRCS}
        ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-quiz: quiz.c /usr/include/stdio.h /usr/include/signal.h
-quiz: /usr/include/machine/trap.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index d91d24a..9b8aeba 100644 (file)
@@ -14,7 +14,7 @@
 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
-#      @(#)Makefile    5.5 (Berkeley) %G%
+#      @(#)Makefile    5.6 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
@@ -35,85 +35,29 @@ OBJS=       abandon.o attack.o autover.o capture.o check_out.o checkcond.o \
        ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
        shield.o snova.o srscan.o systemname.o torped.o utility.o \
        visual.o warp.o win.o cgetc.o
        ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
        shield.o snova.o srscan.o systemname.o torped.o utility.o \
        visual.o warp.o win.o cgetc.o
+MAN=   trek.0
 
 all: trek
 
 trek: ${OBJS} ${LIBC}
        ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
 
 
 all: trek
 
 trek: ${OBJS} ${LIBC}
        ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
 
-clean: FRC
+clean:
        rm -f ${OBJS} core trek
 
        rm -f ${OBJS} core trek
 
-depend: FRC
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
        mkdep ${CFLAGS} ${SRCS}
 
        mkdep ${CFLAGS} ${SRCS}
 
-install: FRC
+install: ${MAN}
        install -s -o games -g bin -m 700 trek ${DESTDIR}/usr/games/hide
        (cd ${DESTDIR}/usr/games; rm -f trek; ln -s dm trek; chown games.bin trek)
        install -s -o games -g bin -m 700 trek ${DESTDIR}/usr/games/hide
        (cd ${DESTDIR}/usr/games; rm -f trek; ln -s dm trek; chown games.bin trek)
+       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
 
 
-lint: FRC
+lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
 
        lint ${CFLAGS} ${SRCS}
 
-tags: FRC
+tags: ${SRCS}
        ctags ${SRCS}
        ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-abandon.o: abandon.c trek.h
-attack.o: attack.c trek.h
-autover.o: autover.c trek.h
-capture.o: capture.c trek.h
-check_out.o: check_out.c trek.h
-checkcond.o: checkcond.c trek.h
-compkl.o: compkl.c trek.h
-computer.o: computer.c trek.h getpar.h /usr/include/stdio.h
-damage.o: damage.c trek.h
-damaged.o: damaged.c trek.h
-dcrept.o: dcrept.c trek.h
-destruct.o: destruct.c trek.h
-dock.o: dock.c trek.h
-dumpgame.o: dumpgame.c trek.h
-dumpme.o: dumpme.c trek.h
-dumpssradio.o: dumpssradio.c trek.h
-events.o: events.c trek.h
-externs.o: externs.c trek.h
-getcodi.o: getcodi.c getpar.h
-getpar.o: getpar.c /usr/include/stdio.h getpar.h
-help.o: help.c trek.h
-impulse.o: impulse.c trek.h
-initquad.o: initquad.c trek.h
-kill.o: kill.c trek.h
-klmove.o: klmove.c trek.h
-lose.o: lose.c trek.h
-lrscan.o: lrscan.c trek.h
-main.o: main.c trek.h /usr/include/stdio.h /usr/include/sgtty.h
-main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
-main.o: /usr/include/sys/ttydev.h
-move.o: move.c trek.h
-nova.o: nova.c trek.h
-out.o: out.c trek.h
-phaser.o: phaser.c trek.h getpar.h
-play.o: play.c trek.h getpar.h
-ram.o: ram.c trek.h
-ranf.o: ranf.c /usr/include/stdio.h
-rest.o: rest.c trek.h getpar.h
-schedule.o: schedule.c trek.h
-score.o: score.c trek.h getpar.h
-setup.o: setup.c trek.h getpar.h
-setwarp.o: setwarp.c trek.h getpar.h
-shell.o: shell.c
-shield.o: shield.c trek.h getpar.h
-snova.o: snova.c trek.h
-srscan.o: srscan.c trek.h getpar.h
-systemname.o: systemname.c trek.h
-torped.o: torped.c /usr/include/stdio.h trek.h
-utility.o: utility.c
-visual.o: visual.c trek.h
-warp.o: warp.c trek.h
-win.o: win.c trek.h getpar.h
-cgetc.o: cgetc.c /usr/include/stdio.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY