386BSD 0.1 development
[unix-history] / usr / src / Makefile
index c78f957..19a16b2 100644 (file)
@@ -1,29 +1,3 @@
-#      @(#)Makefile    4.6     (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 new games local
-
-all:   ${SUBDIR}
-
-${SUBDIR}: FRC
-       cd $@; make ${MFLAGS}
-
-FRC:
-
-install:
-       -for i in ${SUBDIR}; do \
-               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
-
-tags:
-       for i in include lib usr.lib; do \
-               (cd $$i; make ${MFLAGS} TAGSFILE=../tags tags); \
-       done
-       sort -u +0 -1 -o tags tags
-
-clean:
-       rm -f a.out core *.s *.o
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+.include <bsd.subdir.mk>