first working version.
[unix-history] / usr / src / Makefile
... / ...
CommitLineData
1# @(#)Makefile 4.4 (Berkeley) %G%
2#
3DESTDIR=
4CFLAGS= -O
5
6# Programs that live in subdirectories, and have makefiles of their own.
7#
8SUBDIR= lib usr.lib bin usr.bin etc ucb new games local
9
10all: ${SUBDIR}
11
12${SUBDIR}: FRC
13 cd $@; make ${MFLAGS}
14
15FRC:
16
17install:
18 for i in ${SUBDIR}; do \
19 (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
20
21clean:
22 rm -f a.out core *.s *.o
23 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done