386BSD 0.1 development
[unix-history] / usr / src / Makefile
index f57b230..19a16b2 100644 (file)
@@ -1,21 +1,3 @@
-#      @(#)Makefile    4.1     (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=        bin etc games lib ucb usr.bin usr.lib local
-
-all:   ${SUBDIR}
-
-${SUBDIR}: /tmp
-       cd $@; make ${MFLAGS}
-
-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>