]> git.madduck.net Git - etc/vim.git/blob - Makefile

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Escaped pre and code should not be code block
[etc/vim.git] / Makefile
1 VIMDIR=$(DESTDIR)/usr/share/vim
2 ADDONS=${VIMDIR}/addons
3 REGISTRY=${VIMDIR}/registry
4
5 all:
6
7 install:
8         mkdir -pv ${ADDONS}/ftdetect
9         cp -v ftdetect/markdown.vim ${ADDONS}/ftdetect/markdown.vim
10         mkdir -pv ${ADDONS}/ftplugin
11         cp -v ftplugin/markdown.vim ${ADDONS}/ftplugin/markdown.vim
12         mkdir -pv ${ADDONS}/syntax
13         cp -v syntax/markdown.vim ${ADDONS}/syntax/markdown.vim
14         mkdir -pv ${ADDONS}/after/ftplugin
15         cp -v after/ftplugin/markdown.vim ${ADDONS}/after/ftplugin/markdown.vim
16         mkdir -pv ${ADDONS}/doc
17         cp -v doc/vim-markdown.txt ${ADDONS}/doc/vim-markdown.txt
18         mkdir -pv ${REGISTRY}
19         cp -v registry/markdown.yaml ${REGISTRY}/markdown.yaml
20
21 test: build/tabular build/vim-toml build/vim-json build/vader.vim
22         test/run-tests.sh
23 .PHONY: test
24
25 update: build/tabular build/vim-toml build/vim-json build/vader.vim
26         cd build/tabular && git pull
27         cd build/vim-toml && git pull
28         cd build/vim-json && git pull
29         cd build/vader.vim && git pull
30 .PHONY: update
31
32 build/tabular: | build
33         git clone https://github.com/godlygeek/tabular build/tabular
34
35 build/vim-toml: | build
36         git clone https://github.com/cespare/vim-toml build/vim-toml
37
38 build/vim-json: | build
39         git clone https://github.com/elzr/vim-json build/vim-json
40
41 build/vader.vim: | build
42         git clone https://github.com/junegunn/vader.vim build/vader.vim
43
44 build:
45         mkdir build
46
47 doc: build/html2vimdoc build/vim-tools
48         sed '/^\(\[!\[Build Status\]\|1. \[\)/d' README.md > doc/tmp.md
49         build/html2vimdoc/bin/python build/vim-tools/html2vimdoc.py -f vim-markdown \
50                 doc/tmp.md | \
51                 sed -e "s/\s*$$//; # remove trailing spaces" \
52                     -e "/^- '[^']*':\( \|$$\)/ { # match command lines" \
53                     -e "s/^- '\([^']*\)':\( \|$$\)/ \*\1\*\n\0/; # make command references" \
54                     -e ":a; s/^\(.\{1,78\}\n\)/ \1/; ta } # right align references" \
55                 > doc/vim-markdown.txt && rm -f doc/tmp.md
56 .PHONY: doc
57
58 # Prerequire Python and virtualenv.
59 # $ sudo pip install virtualenv
60 # Create the virtual environment.
61 # Install the dependencies.
62 build/html2vimdoc: | build
63         virtualenv build/html2vimdoc
64         build/html2vimdoc/bin/pip install beautifulsoup coloredlogs==4.0 markdown
65
66 build/vim-tools: | build
67         git clone https://github.com/xolox/vim-tools.git build/vim-tools