rationalized handling of child processes, cleaned up mail1 some more
[unix-history] / usr / src / usr.bin / pascal / Makefile
CommitLineData
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#
c154cdd2 6# @(#)Makefile 5.4 (Berkeley) %G%
21d7efb1 7#
21d7efb1
KM
8CFLAGS= -O
9
10# Programs that live in subdirectories, and have makefiles of their own.
11#
3d18ec6e 12SUBDIR= pi pc0 px pxp pdx utilities
21d7efb1 13
36cf4cdb 14all:
3d18ec6e 15 for i in eyacc ${SUBDIR}; do \
36cf4cdb
KM
16 (cd $$i; make ${MFLAGS}); \
17 done
21d7efb1 18
3d18ec6e 19${SUBDIR}: FRC
21d7efb1
KM
20 cd $@; make ${MFLAGS}
21
3d18ec6e
KB
22tags: FRC
23 for i in eyacc ${SUBDIR}; do \
24 (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} tags); \
25 done
26
27install: FRC
28 for i in eyacc ${SUBDIR}; do \
29 (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
9303cc20 30 done
21d7efb1 31
3d18ec6e 32clean: FRC
21d7efb1 33 rm -f a.out core *.s *.o
3d18ec6e
KB
34 for i in eyacc ${SUBDIR}; do \
35 (cd $$i; make ${MFLAGS} clean); \
9303cc20 36 done
300a5f74
KB
37
38depend:
3d18ec6e
KB
39 (cd eyacc; make ${MFLAGS} depend)
40 (cd eyacc; make ${MFLAGS} all)
41 for i in ${SUBDIR}; do \
42 (cd $$i; make ${MFLAGS} depend); \
43 done
44
45FRC: