date and time created 87/12/12 18:29:20 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 13 Dec 1987 10:29:20 +0000 (02:29 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 13 Dec 1987 10:29:20 +0000 (02:29 -0800)
SCCS-vsn: share/man/Makefile 5.1

usr/src/share/man/Makefile [new file with mode: 0644]

diff --git a/usr/src/share/man/Makefile b/usr/src/share/man/Makefile
new file mode 100644 (file)
index 0000000..c79f52d
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms are permitted
+# provided that this notice is preserved and that due credit is given
+# to the University of California at 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'' without express or implied warranty.
+#
+#      @(#)Makefile    5.1 (Berkeley) %G%
+#
+DIRS=  man1 man2 man3 man3f man4 man4/vax man4/tahoe man5 man6 \
+       man7 man8 man8/vax
+CDIRS= cat1 cat2 cat3 cat3f cat4 cat4/vax cat4/tahoe cat5 cat6 \
+       cat7 cat8 cat8/vax
+LCDIRS=        cat1 cat2 cat3 cat4 cat5 cat6 cat7 cat8
+
+all: scriptinstall FRC
+       for i in ${DIRS}; do \
+               (cd $$i; make ${MFLAGS}); \
+       done
+
+scriptinstall: FRC
+       install -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed
+       install -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff
+
+install: FRC
+       for i in ${DIRS}; do \
+               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
+       done
+       for file in `find /usr/man -type f -name '*.0' -print`; do \
+               sed -n -f /usr/man/makewhatis.sed $$file; \
+       done | sort -u > whatis.db
+       install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis
+       install -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template
+
+manclean: FRC
+       for i in ${DIRS}; do \
+               (cd $$i; make ${MFLAGS} clean); \
+       done
+
+clean:
+depend:
+lint:
+tags:
+FRC: