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.2 (Berkeley) 05/10/87 7# 8DESTDIR= 9CFLAGS= -O 10 11# Programs that live in subdirectories, and have makefiles of their own. 12# 13SUBDIR= eyacc pi pc0 px pxp pdx utilities 14 15all: 16 for i in ${SUBDIR}; do \ 17 (cd $$i; make ${MFLAGS}); \ 18 done 19 20${SUBDIR}: /tmp 21 cd $@; make ${MFLAGS} 22 23install: 24 for i in ${SUBDIR}; do \ 25 (echo $$i; cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ 26 done 27 28clean: 29 rm -f a.out core *.s *.o 30 for i in ${SUBDIR}; do \ 31 (echo $$i; cd $$i; make ${MFLAGS} clean); \ 32 done 33