Skip to content

Instantly share code, notes, and snippets.

@key-amb
Created Apr 14, 2016
Embed
What would you like to do?
Makefile to update git repository with submodules
.PHONY: update update-all all
update:
git pull origin master
git submodule update --init
update-all: update
git submodule foreach git pull origin master
all: update-all
% make # to update
% make all # to update with submodules' update out of this repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment