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