-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
38 lines (29 loc) · 978 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: all clean doc package test
sources = plugin/localvimrc.vim
helpfile = doc/localvimrc.txt
vimball = localvimrc.vmb
vim-tools = support/vim-tools
html2vimdoc = $(vim-tools)/bin/html2vimdoc
all: test doc package
clean:
@echo "#### purging markdown to vim help converter ####"
@rm -rf $(vim-tools)
@echo "#### purging vimball ####"
@rm -rf $(vimball)
@echo "#### purging testing framework ####"
@rm -rf test/vader
doc: $(helpfile)
package: $(vimball)
test:
@echo "#### running tests ####"
@test/run.sh
$(html2vimdoc):
@echo "#### building markdown to vim help converter ####"
@support/build_vim-tools.sh
$(helpfile): README.md $(html2vimdoc)
@echo "#### converting README to vim documentation ####"
@$(html2vimdoc) -f $$(basename $@ .txt) $< >$@ 2>/dev/null
$(vimball): LICENSE $(helpfile) $(sources)
@echo "#### creating vimball package ####"
@for FILE in $^; do echo $${FILE}; done \
| vim -C --not-a-term -c '%%MkVimball! localvimrc .' -c 'q!' -