add Berkeley specific copyright, cleanups
[unix-history] / usr / src / share / man / Makefile
CommitLineData
d2250bdf
KB
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
57a981eb
KB
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
d2250bdf 16#
57a981eb 17# @(#)Makefile 5.3 (Berkeley) %G%
d2250bdf
KB
18#
19DIRS= man1 man2 man3 man3f man4 man4/vax man4/tahoe man5 man6 \
f681950a 20 man7 man8 man8/vax man8/tahoe
d2250bdf 21CDIRS= cat1 cat2 cat3 cat3f cat4 cat4/vax cat4/tahoe cat5 cat6 \
f681950a 22 cat7 cat8 cat8/vax man8/tahoe
d2250bdf
KB
23LCDIRS= cat1 cat2 cat3 cat4 cat5 cat6 cat7 cat8
24
25all: scriptinstall FRC
26 for i in ${DIRS}; do \
27 (cd $$i; make ${MFLAGS}); \
28 done
29
30scriptinstall: FRC
31 install -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed
32 install -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff
33
34install: FRC
35 for i in ${DIRS}; do \
36 (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
37 done
38 for file in `find /usr/man -type f -name '*.0' -print`; do \
39 sed -n -f /usr/man/makewhatis.sed $$file; \
40 done | sort -u > whatis.db
41 install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis
42 install -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template
43
44manclean: FRC
45 for i in ${DIRS}; do \
46 (cd $$i; make ${MFLAGS} clean); \
47 done
48
49clean:
50depend:
51lint:
52tags:
53FRC: