-
-
Save austinkeeley/df386feae3b643ff0e8da6b2e973aef7 to your computer and use it in GitHub Desktop.
Recursive make and make clean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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