aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-03-25 17:35:08 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-03-25 17:35:08 +1300
commitd2d6f8c2fde47cf828f57a4a9628451bf28dda72 (patch)
treea88c7482aaf930a77e128c57f2b64545fa7c2c32
parentMissed a phony build target (diff)
downloaddotfiles-d2d6f8c2fde47cf828f57a4a9628451bf28dda72.tar.gz
dotfiles-d2d6f8c2fde47cf828f57a4a9628451bf28dda72.zip
Improved syntax for the Vim plugin targets
-rw-r--r--Makefile38
-rw-r--r--README.markdown5
2 files changed, 4 insertions, 39 deletions
diff --git a/Makefile b/Makefile
index 176b1138..8e927dcf 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ gnupg/gpg.conf :
vim : vim-plugins
-vim-plugins : vim/bundle/abolish/.git \
+VIM_PLUGINS = vim/bundle/abolish/.git \
vim/bundle/argumentative/.git \
vim/bundle/commentary/.git \
vim/bundle/ctrlp/.git \
@@ -72,39 +72,9 @@ vim-plugins : vim/bundle/abolish/.git \
vim/bundle/unimpaired/.git \
vim/bundle/vimperator/.git
-vim/bundle/abolish/.git :
- git submodule update --init "$(@D)"
-vim/bundle/argumentative/.git :
- git submodule update --init "$(@D)"
-vim/bundle/commentary/.git :
- git submodule update --init "$(@D)"
-vim/bundle/ctrlp/.git :
- git submodule update --init "$(@D)"
-vim/bundle/exchange/.git :
- git submodule update --init "$(@D)"
-vim/bundle/html5/.git :
- git submodule update --init "$(@D)"
-vim/bundle/lion/.git :
- git submodule update --init "$(@D)"
-vim/bundle/nagios/.git :
- git submodule update --init "$(@D)"
-vim/bundle/pathogen/.git :
- git submodule update --init "$(@D)"
-vim/bundle/repeat/.git :
- git submodule update --init "$(@D)"
-vim/bundle/sahara/.git :
- git submodule update --init "$(@D)"
-vim/bundle/surround/.git :
- git submodule update --init "$(@D)"
-vim/bundle/tmux/.git :
- git submodule update --init "$(@D)"
-vim/bundle/twig/.git :
- git submodule update --init "$(@D)"
-vim/bundle/undotree/.git :
- git submodule update --init "$(@D)"
-vim/bundle/unimpaired/.git :
- git submodule update --init "$(@D)"
-vim/bundle/vimperator/.git :
+vim-plugins : $(VIM_PLUGINS)
+
+$(VIM_PLUGINS) :
git submodule update --init "$(@D)"
install : install-bash \
diff --git a/README.markdown b/README.markdown
index 46f2428d..301ca761 100644
--- a/README.markdown
+++ b/README.markdown
@@ -280,11 +280,6 @@ I’d welcome patches or advice on fixing any of these problems.
* The `install-terminfo` target does not work correctly on NetBSD due to the
different way `tic(1)` works, which I don’t understand at all.
-* Parts of the `Makefile` are inelegant. For example, I'd love to have a
- target pattern for checking out the Git submodules used for the Vim plugins
- that's POSIX compliant or at least works on all the major open-source
- UNIXes. `%` doesn't seem to match pathnames for BSD `make(1)`, only
- filenames.
License
-------