Created
May 21, 2014 17:15
-
-
Save linse/87f3b44d59a9d298309c to your computer and use it in GitHub Desktop.
Recursive make and make clean
This file contains 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