xref: /original-bsd/contrib/Makefile (revision df6dbad5)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	4.25	(Berkeley)	12/05/87
7#
8DESTDIR=
9CFLAGS=	-O
10LIBC=	/lib/libc.a
11
12# Programs that live in subdirectories, and have makefiles of their own.
13#
14SUBDIR=	ansi bib emacs jove kermit mh patch rcs X X/X.local
15
16all: ${SUBDIR}
17
18${SUBDIR}: FRC
19	cd $@; make ${MFLAGS}
20
21install:
22	-for i in ${SUBDIR}; do \
23		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
24	for file in `find /usr/new/man -type f -name '*.0' -print`; do \
25		sed -n -f /usr/man/makewhatis.sed $$file; \
26	done | sort -u > whatis.db
27	install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/new/man/whatis
28
29clean:
30	-for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done
31
32depend:
33FRC:
34