Skip to content

Instantly share code, notes, and snippets.

@linse
Created May 21, 2014 17:15
Show Gist options
  • Save linse/87f3b44d59a9d298309c to your computer and use it in GitHub Desktop.
Save linse/87f3b44d59a9d298309c 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