-# @(#)Makefile 4.3 (Berkeley) %G%
-#
-DESTDIR=
-CFLAGS= -O
+SUBDIR= bin include lib libexec sbin usr.bin usr.sbin
-# Programs that live in subdirectories, and have makefiles of their own.
-#
-SUBDIR= lib usr.lib bin usr.bin etc ucb games local
-
-all: ${SUBDIR}
-
-${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
+.include <bsd.subdir.mk>