date and time created 88/12/22 13:04:38 by sam
[unix-history] / usr / src / usr.bin / diction / Makefile
index 6017452..e198c0a 100644 (file)
@@ -1,14 +1,26 @@
 #
 #
-# 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.7     (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.8 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  diction.c nwords.c end.c part.c pscan.c outp.c
 OBJS=  nwords.o end.o part.o pscan.o outp.o
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  diction.c nwords.c end.c part.c pscan.c outp.c
 OBJS=  nwords.o end.o part.o pscan.o outp.o
+MAN=   diction.0 style.0
 
 all: dprog style1 style2 style3
 
 
 all: dprog style1 style2 style3
 
@@ -24,13 +36,16 @@ style2: end.o ${LIBC}
 style3: part.o pscan.o outp.o ${LIBC}
        ${CC} part.o pscan.o outp.o -o $@ -ll
 
 style3: part.o pscan.o outp.o ${LIBC}
        ${CC} part.o pscan.o outp.o -o $@ -ll
 
-clean: FRC
+clean:
        rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog
 
        rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog
 
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
 depend: ${SRCS} FRC
        mkdep ${CFLAGS} ${SRCS}
 
 depend: ${SRCS} FRC
        mkdep ${CFLAGS} ${SRCS}
 
-install: FRC
+install: ${MAN}
        install -s -o bin -g bin -m 755 style1 ${DESTDIR}/usr/lib
        install -s -o bin -g bin -m 755 style2 ${DESTDIR}/usr/lib
        install -s -o bin -g bin -m 755 style3 ${DESTDIR}/usr/lib
        install -s -o bin -g bin -m 755 style1 ${DESTDIR}/usr/lib
        install -s -o bin -g bin -m 755 style2 ${DESTDIR}/usr/lib
        install -s -o bin -g bin -m 755 style3 ${DESTDIR}/usr/lib
@@ -40,31 +55,18 @@ install: FRC
        install -c -o bin -g bin -m 755 explain.sh ${DESTDIR}/usr/bin/explain
        install -c -o bin -g bin -m 755 dict.d ${DESTDIR}/usr/lib
        install -c -o bin -g bin -m 755 explain.d ${DESTDIR}/usr/lib
        install -c -o bin -g bin -m 755 explain.sh ${DESTDIR}/usr/bin/explain
        install -c -o bin -g bin -m 755 dict.d ${DESTDIR}/usr/lib
        install -c -o bin -g bin -m 755 explain.d ${DESTDIR}/usr/lib
+       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       rm -f ${DESTDIR}/usr/man/cat1/explain.0
+       ln ${DESTDIR}/usr/man/cat1/diction.0 ${DESTDIR}/usr/man/cat1/explain.0
 #      ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest
 
 #      ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest
 
-lint: ${SRCS} FRC
+lint: ${SRCS}
        lint ${CFLAGS} nwords.c
        lint ${CFLAGS} end.c
        lint ${CFLAGS} part.c pscan.c outp.c
 
        lint ${CFLAGS} nwords.c
        lint ${CFLAGS} end.c
        lint ${CFLAGS} part.c pscan.c outp.c
 
-tags: ${SRCS} FRC
+tags: ${SRCS}
        ctags nwords.c
        ctags -a end.c
        ctags -a part.c pscan.c outp.c
        sort -o tags tags
        ctags nwords.c
        ctags -a end.c
        ctags -a part.c pscan.c outp.c
        sort -o tags tags
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-diction.o: diction.c /usr/include/stdio.h /usr/include/ctype.h
-nwords.o: nwords.c /usr/include/stdio.h /usr/include/stdio.h
-nwords.o: /usr/include/ctype.h names.h nhash.c dict.c ydict.c abbrev.c
-end.o: end.c /usr/include/stdio.h /usr/include/stdio.h /usr/include/ctype.h
-end.o: names.h ehash.c edict.c
-part.o: part.c /usr/include/stdio.h style.h names.h conp.h
-pscan.o: pscan.c names.h conp.h
-outp.o: outp.c /usr/include/stdio.h /usr/include/ctype.h style.h names.h conp.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY