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