Commit | Line | Data |
---|---|---|
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 | # |
8 | DESTDIR= | |
9 | CFLAGS= -O | |
6588680f | 10 | LIBC= /lib/libc.a |
dfd136ea SL |
11 | |
12 | # Programs that live in subdirectories, and have makefiles of their own. | |
13 | # | |
6588680f | 14 | SUBDIR= ansi bib emacs jove kermit mh patch rcs X X/X.local |
dfd136ea | 15 | |
6588680f | 16 | all: ${SUBDIR} |
dfd136ea SL |
17 | |
18 | ${SUBDIR}: FRC | |
19 | cd $@; make ${MFLAGS} | |
20 | ||
21 | install: | |
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 | |
29 | clean: | |
572b8378 | 30 | -for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done |
dfd136ea | 31 | |
6588680f | 32 | depend: |
dfd136ea | 33 | FRC: |