-# @(#)Makefile 4.3 (Berkeley) %G%
-#
-DESTDIR=
-CFLAGS= -O
+# @(#)Makefile 8.1 (Berkeley) %G%
-# Programs that live in subdirectories, and have makefiles of their own.
-#
-SUBDIR= lib usr.lib bin usr.bin etc ucb games local
+SUBDIR= bin contrib games include kerberosIV lib libexec sbin share \
+ usr.bin usr.sbin
-all: ${SUBDIR}
+afterinstall:
+ (cd share/man && make makedb)
-${SUBDIR}: FRC
- cd $@; make ${MFLAGS}
-
-FRC:
-
-install:
- for i in ${SUBDIR}; do \
- (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
-
-clean:
- rm -f a.out core *.s *.o
- for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+build:
+ (cd include && make install)
+ make cleandir
+ (cd lib && make depend && make && make install)
+ (cd kerberosIV && make depend && make && make install)
+ make depend && make && make install
+
+.include <bsd.subdir.mk>