Last active
February 3, 2016 13:56
-
-
Save rheum/3062b128f9ab31de7264 to your computer and use it in GitHub Desktop.
Make: Recursively Building Git Submodules
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
.PHONY: all submoduleX submoduleY update-submodules | |
all: submoduleX submoduleY | |
submoduleX: submoduleX/Makefile | |
@- make -C submoduleX | |
submoduleY: submoduleY/Makefile | |
@- make -C submoduleY | |
%/Makefile: | |
git submodule update --init --remote --recursive | |
update-submodules: | |
git submodule update --init --remote --recursive | |
clean: | |
git clean -f -d -x | |
git submodule foreach --recursive make clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment