Commit | Line | Data |
---|---|---|
e324963e KM |
1 | # |
2 | # Copyright (c) 1980 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
300a5f74 | 6 | # @(#)Makefile 5.3 (Berkeley) %G% |
21d7efb1 KM |
7 | # |
8 | DESTDIR= | |
9 | CFLAGS= -O | |
10 | ||
11 | # Programs that live in subdirectories, and have makefiles of their own. | |
12 | # | |
cbd33c0a | 13 | SUBDIR= eyacc pi pc0 px pxp pdx utilities |
21d7efb1 | 14 | |
36cf4cdb KM |
15 | all: |
16 | for i in ${SUBDIR}; do \ | |
17 | (cd $$i; make ${MFLAGS}); \ | |
18 | done | |
21d7efb1 KM |
19 | |
20 | ${SUBDIR}: /tmp | |
21 | cd $@; make ${MFLAGS} | |
22 | ||
23 | install: | |
24 | for i in ${SUBDIR}; do \ | |
9303cc20 PK |
25 | (echo $$i; cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ |
26 | done | |
21d7efb1 KM |
27 | |
28 | clean: | |
29 | rm -f a.out core *.s *.o | |
9303cc20 PK |
30 | for i in ${SUBDIR}; do \ |
31 | (echo $$i; cd $$i; make ${MFLAGS} clean); \ | |
32 | done | |
300a5f74 KB |
33 | |
34 | depend: |