Why not get make to do all the work? It can call itself recursively, just write a rule for each subsystem.
subsystem: cd subdir && $(MAKE) or, equivalently, subsystem: $(MAKE) -C subdir
It is explained in the make docs, try:
info makeIn reply to Re: Capture the make status
by RichardK
in thread [SOLVED] Capture the make status
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |