Skip to content

Instantly share code, notes, and snippets.

@benpickles
Created April 2, 2014 14:19
Show Gist options
  • Save benpickles/9935108 to your computer and use it in GitHub Desktop.
Save benpickles/9935108 to your computer and use it in GitHub Desktop.
Update `~/.vim/bundle`s with the power of make
BUNDLES = $(shell ls bundle)
BUNDLE_TARGETS = $(addprefix update_, $(BUNDLES))
list:
@for BUNDLE in $(BUNDLES); do echo $$BUNDLE; done
update: $(BUNDLE_TARGETS)
update_%:
cd bundle/$(*F) && git pull
.PHONEY: list update $(BUNDLE_TARGETS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment