more fixes from rick adams
[unix-history] / usr / src / Makefile
CommitLineData
37e9ec87 1# @(#)Makefile 4.6 (Berkeley) %G%
9c1744c1
KM
2#
3DESTDIR=
4CFLAGS= -O
5
6# Programs that live in subdirectories, and have makefiles of their own.
7#
2fa00004 8SUBDIR= lib usr.lib bin usr.bin etc ucb new games local
9c1744c1
KM
9
10all: ${SUBDIR}
11
b9fe0661 12${SUBDIR}: FRC
9c1744c1
KM
13 cd $@; make ${MFLAGS}
14
b9fe0661
SL
15FRC:
16
9c1744c1 17install:
37e9ec87 18 -for i in ${SUBDIR}; do \
9c1744c1
KM
19 (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
20
74d5a2b2
SL
21tags:
22 for i in include lib usr.lib; do \
23 (cd $$i; make ${MFLAGS} TAGSFILE=../tags tags); \
24 done
25 sort -u +0 -1 -o tags tags
26
9c1744c1
KM
27clean:
28 rm -f a.out core *.s *.o
29 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done