BSD 4_3_Tahoe release
[unix-history] / usr / src / games / quiz / Makefile
index 64d27de..f32c703 100644 (file)
@@ -1,41 +1,46 @@
-#      @(#)Makefile    4.1     (Berkeley)      %G%
 #
 #
-DESTDIR=
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile    4.5     (Berkeley)      9/22/87
+#
 CFLAGS=        -O
 CFLAGS=        -O
+LIBC=  /lib/libc.a
+SRCS=  quiz.c
+OBJS=
+
+all: quiz
+
+quiz: ${LIBC}
+       ${CC} -o $@ ${CFLAGS} ${SRCS}
+
+clean: FRC
+       rm -f ${OBJS} core quiz
+
+depend: FRC
+       mkdep -p ${CFLAGS} ${SRCS}
+
+install: FRC
+       -[ -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}
+
+tags: FRC
+       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
 
 
-quiz: quiz.c
-       cc ${CFLAGS} -o quiz quiz.c
-
-install:
-       install quiz ${DESTDIR}/usr/games/quiz
-       cp -r quiz.k ${DESTDIR}/usr/games/lib
-
-clean:
-       rm -f a.out core *.s *.o quiz
-
-depend:
-       cat </dev/null >x.c
-       for i in quiz; do \
-               (echo $$i: $$i.c >>makedep; \
-               /bin/grep '^#[  ]*include' x.c $$i.c | sed \
-                       -e 's,<\(.*\)>,"/usr/include/\1",' \
-                       -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
-                       -e 's/\.c//' >>makedep); done
-       echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep x.c
-       echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
-       echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
-       echo '# see make depend above' >> Makefile
-
-# DO NOT DELETE THIS LINE -- make depend uses it
-
-quiz: quiz.c
-quiz: /usr/include/stdio.h
-quiz: /usr/include/signal.h
-# DEPENDENCIES MUST END AT END OF FILE
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY