xref: /original-bsd/share/man/Makefile (revision a4f2d92b)
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
6# provided that this notice is preserved and that due credit is given
7# to the University of California at Berkeley. The name of the University
8# may not be used to endorse or promote products derived from this
9# software without specific prior written permission. This software
10# is provided ``as is'' without express or implied warranty.
11#
12#	@(#)Makefile	5.1 (Berkeley) 12/12/87
13#
14DIRS=	man1 man2 man3 man3f man4 man4/vax man4/tahoe man5 man6 \
15	man7 man8 man8/vax
16CDIRS=	cat1 cat2 cat3 cat3f cat4 cat4/vax cat4/tahoe cat5 cat6 \
17	cat7 cat8 cat8/vax
18LCDIRS=	cat1 cat2 cat3 cat4 cat5 cat6 cat7 cat8
19
20all: scriptinstall FRC
21	for i in ${DIRS}; do \
22		(cd $$i; make ${MFLAGS}); \
23	done
24
25scriptinstall: FRC
26	install -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed
27	install -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff
28
29install: FRC
30	for i in ${DIRS}; do \
31		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
32	done
33	for file in `find /usr/man -type f -name '*.0' -print`; do \
34		sed -n -f /usr/man/makewhatis.sed $$file; \
35	done | sort -u > whatis.db
36	install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis
37	install -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template
38
39manclean: FRC
40	for i in ${DIRS}; do \
41		(cd $$i; make ${MFLAGS} clean); \
42	done
43
44clean:
45depend:
46lint:
47tags:
48FRC:
49