SUBDIRS= c cpp TARGETS= all clean install .PHONY: $(TARGETS) $(SUBDIRS) $(TARGETS): $(SUBDIRS) $(SUBDIRS): $(MAKE) -C $@ $(MAKECMDGOALS)