BSD 4_3_Tahoe release
[unix-history] / usr / src / games / quiz / Makefile
index 2735220..f32c703 100644 (file)
@@ -3,27 +3,31 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    4.4     (Berkeley)      %G%
+#      @(#)Makefile    4.5     (Berkeley)      9/22/87
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  quiz.c
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  quiz.c
-OBJS=  quiz.o
+OBJS=
 
 all: quiz
 
 
 all: quiz
 
-quiz:  ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
+quiz: ${LIBC}
+       ${CC} -o $@ ${CFLAGS} ${SRCS}
 
 clean: FRC
        rm -f ${OBJS} core quiz
 
 depend: FRC
 
 clean: FRC
        rm -f ${OBJS} core quiz
 
 depend: FRC
-       mkdep ${CFLAGS} ${SRCS}
+       mkdep -p ${CFLAGS} ${SRCS}
 
 install: FRC
 
 install: FRC
-       install -s -o bin -g bin -m 755 quiz ${DESTDIR}/usr/games/quiz
-       cp -r quiz.k ${DESTDIR}/usr/games/lib
+       -[ -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)
 
 lint: FRC
        lint ${CFLAGS} ${SRCS}
 
 lint: FRC
        lint ${CFLAGS} ${SRCS}
@@ -36,6 +40,7 @@ FRC:
 # DO NOT DELETE THIS LINE -- mkdep uses it.
 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
 # DO NOT DELETE THIS LINE -- mkdep uses it.
 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
-quiz.o: quiz.c /usr/include/stdio.h /usr/include/signal.h
+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
 
 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY