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 | # | |
6 | # @(#)Makefile 5.1 (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 KM |
14 | |
15 | all: ${SUBDIR} | |
16 | ||
17 | ${SUBDIR}: /tmp | |
18 | cd $@; make ${MFLAGS} | |
19 | ||
20 | install: | |
21 | for i in ${SUBDIR}; do \ | |
9303cc20 PK |
22 | (echo $$i; cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ |
23 | done | |
21d7efb1 KM |
24 | |
25 | clean: | |
26 | rm -f a.out core *.s *.o | |
9303cc20 PK |
27 | for i in ${SUBDIR}; do \ |
28 | (echo $$i; cd $$i; make ${MFLAGS} clean); \ | |
29 | done |