-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
69 lines (48 loc) · 1.59 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
PREFIX?=$(HOME)/.vim
FTPLUGIN=$(PREFIX)/ftplugin
INDENT=$(PREFIX)/indent
SYNTAX=$(PREFIX)/syntax
TOOLS=$(PREFIX)/tools
default: preproc
dirs:
mkdir -p $(FTPLUGIN) $(INDENT) $(SYNTAX) $(TOOLS)
install: dirs fix_old_vim
cp ftplugin/*.vim $(FTPLUGIN)/
cp indent/*.vim $(INDENT)/
cp syntax/*.vim $(SYNTAX)/
cp tools/efm_perl.pl $(TOOLS)/
tarball:
perl tools/make-tarball.pl
test: preproc fix_old_vim
prove -rv t
test6: preproc
perl t/01_highlighting.t t_source/perl6/*.t
clean:
rm -fr after/syntax/perl
contrib_syntax:
mkdir -p after/syntax/perl
carp: contrib_syntax
cp contrib/carp.vim after/syntax/perl/
dancer: contrib_syntax
cp contrib/dancer.vim after/syntax/perl/
heredoc-sql-mason: contrib_syntax
cp contrib/heredoc-sql-mason.vim after/syntax/perl/
heredoc-sql: contrib_syntax
cp contrib/heredoc-sql.vim after/syntax/perl/
highlight-all-pragmas: contrib_syntax
cp contrib/highlight-all-pragmas.vim after/syntax/perl/
js-css-in-mason: contrib_syntax
cp contrib/js-css-in-mason.vim after/syntax/perl/
method-signatures: contrib_syntax
cp contrib/method-signatures.vim after/syntax/perl/
moose: contrib_syntax
cp contrib/moose.vim after/syntax/perl/
test-more: contrib_syntax
cp contrib/test-more.vim after/syntax/perl/
try-tiny: contrib_syntax
cp contrib/try-tiny.vim after/syntax/perl/
preproc:
tools/preproc.pl syntax/perl6.vim.pre > syntax/perl6.vim
# this gets rid of a regex optimization introduced in Vim 7.4
fix_old_vim:
expr `vim --version|head -n1|grep -Poh '\d\.\d'|head -n1` \< 7.4 >/dev/null && sed -i 's/\\@[0-9]\+/\\@/g; /version < 704/d' syntax/perl6.vim; true