Skip to content

Instantly share code, notes, and snippets.

@austinkeeley
Forked from linse/Makefile
Created June 23, 2019 13:37
Show Gist options
  • Save austinkeeley/df386feae3b643ff0e8da6b2e973aef7 to your computer and use it in GitHub Desktop.
Save austinkeeley/df386feae3b643ff0e8da6b2e973aef7 to your computer and use it in GitHub Desktop.
Recursive make and make clean
SUBDIRS = src doc whatever
.PHONY: all clean
all clean:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir -f Makefile $@; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment