cleanup, add manual page
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 21 Oct 1988 03:51:04 +0000 (19:51 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 21 Oct 1988 03:51:04 +0000 (19:51 -0800)
SCCS-vsn: old/games.vax/zork/Makefile 4.4

usr/src/old/games.vax/zork/Makefile

index e2302c6..5600683 100644 (file)
@@ -1,44 +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) 1988 The Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    4.3     (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.4 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  zork.c
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  zork.c
-OBJS=  zork.o
+OBJS=
+MAN=   zork.0
 
 all: zork
 
 
 all: zork
 
-zork: zork.c ${LIBC}
-       ${CC} ${CFLAGS} -o $@ zork.c
+zork: ${LIBC}
+       ${CC} ${CFLAGS} -o $@ $@.c
 
 
-clean: FRC
+clean:
        rm -f ${OBJS} core zork
 
        rm -f ${OBJS} core zork
 
-depend: FRC
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
        mkdep ${CFLAGS} ${SRCS}
 
        mkdep ${CFLAGS} ${SRCS}
 
-install: FRC
+install: ${MAN}
+       -[ -d ${DESTDIR}/usr/games/lib/zorklib ] || mkdir ${DESTDIR}/usr/games/lib/zorklib
        install -s -o bin -g bin -m 755 zork ${DESTDIR}/usr/games/zork
        install -c -o bin -g bin -m 755 zorklib/dtext.dat ${DESTDIR}/usr/games/lib
        install -c -o bin -g bin -m 755 zorklib/dindex.dat ${DESTDIR}/usr/games/lib
        install -c -o bin -g bin -m 755 zorklib/doverlay ${DESTDIR}/usr/games/lib
        install -c -o bin -g bin -m 755 zorklib/dungeon ${DESTDIR}/usr/games/lib
        install -s -o bin -g bin -m 755 zork ${DESTDIR}/usr/games/zork
        install -c -o bin -g bin -m 755 zorklib/dtext.dat ${DESTDIR}/usr/games/lib
        install -c -o bin -g bin -m 755 zorklib/dindex.dat ${DESTDIR}/usr/games/lib
        install -c -o bin -g bin -m 755 zorklib/doverlay ${DESTDIR}/usr/games/lib
        install -c -o bin -g bin -m 755 zorklib/dungeon ${DESTDIR}/usr/games/lib
+       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.
-
-zork.o: zork.c /usr/include/stdio.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY