TOP= .. SUBDIR= catastrophe \ linear \ plot2 \ lorenz \ sgview all: all-subdir clean: prereq clean-subdir cleandir: prereq cleandir-subdir install: install-subdir deinstall: deinstall-subdir depend: depend-subdir configure: for D in ${SUBDIR}; do \ echo "==> $$D"; \ (cd $$D && ${MAKE} configure); \ done prereq: for D in ${SUBDIR}; do \ echo "==> $$D"; \ touch $$D/.depend; \ touch $$D/Makefile.config; \ done proj: for D in ${SUBDIR}; do \ echo "==> $$D"; \ (cd $$D && ${MAKE} proj); \ done .PHONY: clean cleandir install deinstall depend configure prereq proj include ${TOP}/mk/build.common.mk include ${TOP}/mk/build.subdir.mk