From d2d6f8c2fde47cf828f57a4a9628451bf28dda72 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Mar 2015 17:35:08 +1300 Subject: Improved syntax for the Vim plugin targets --- Makefile | 38 ++++---------------------------------- README.markdown | 5 ----- 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 ------- -- cgit v1.2.3