ANSIfication; bug report 4.3BSD/bin/223
[unix-history] / usr / src / contrib / Makefile
CommitLineData
6588680f
KB
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) %G%
dfd136ea
SL
7#
8DESTDIR=
9CFLAGS= -O
6588680f 10LIBC= /lib/libc.a
dfd136ea
SL
11
12# Programs that live in subdirectories, and have makefiles of their own.
13#
6588680f 14SUBDIR= ansi bib emacs jove kermit mh patch rcs X X/X.local
dfd136ea 15
6588680f 16all: ${SUBDIR}
dfd136ea
SL
17
18${SUBDIR}: FRC
19 cd $@; make ${MFLAGS}
20
21install:
572b8378 22 -for i in ${SUBDIR}; do \
dfd136ea 23 (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
6588680f
KB
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
dfd136ea
SL
28
29clean:
572b8378 30 -for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done
dfd136ea 31
6588680f 32depend:
dfd136ea 33FRC: