Commit | Line | Data |
---|---|---|
30602156 | 1 | # @(#)Makefile 4.2 (Berkeley) %G% |
9c1744c1 KM |
2 | # |
3 | DESTDIR= | |
4 | CFLAGS= -O | |
5 | ||
6 | # Programs that live in subdirectories, and have makefiles of their own. | |
7 | # | |
30602156 | 8 | SUBDIR= lib usr.lib bin usr.bin etc ucb games local |
9c1744c1 KM |
9 | |
10 | all: ${SUBDIR} | |
11 | ||
12 | ${SUBDIR}: /tmp | |
13 | cd $@; make ${MFLAGS} | |
14 | ||
15 | install: | |
16 | for i in ${SUBDIR}; do \ | |
17 | (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done | |
18 | ||
19 | clean: | |
20 | rm -f a.out core *.s *.o | |
21 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done |