SUBDIRS=commonReader httpReader .PHONY: all clean subdirs subdirs_clean $(SUBDIRS) all: $(SUBDIRS) subdirs: $(SUBDIRS) $(SUBDIRS): $(MAKE) -C $@ subdirs_clean: for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir clean; \ done clean: subdirs_clean