-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
149 lines (116 loc) · 3.61 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# VIM::Packager::MakeMaker
#
# This Makefile is generated by VIM::Packager::MakeMaker version $VERSION from
# the contents of META . don't edit this file, edit META file instead.
#
# Author: Cornelius
# Email : cornelius.howl@gmail.com
#
# -------- meta section ------
REPOSITORY = git://....../
VERSION = 0.22
NAME = vimomni.vim
AUTHOR = Cornelius
VERSION_FROM = ftplugin/vim/omni.vim
LIBPATH = .
EMAIL = cornelius.howl@gmail.com
TYPE = ftplugin
SCRIPT_ID = 2922
DISTNAME = vimomni-vim-0.22
VIM_VERSION = 7.2
# -------- config section ------
CHMOD = chmod
CP = cp
ECHO = echo
ECHO_N = echo -n
FALSE = false
FIRST_MAKEFILE = Makefile
FULLPERL = /opt/local/bin/perl
LN_S = ln -sv
LN_SF = ln -svf
MAKEFILE_OLD = Makefile.old
META_FILE = META
MV = mv
NOECHO = @
NOOP = $(TRUE)
PERLFLAGS = -Ilib
PWD = `pwd`
README =
RM_F = rm -vf
RM_RF = rm -rf
TAR = COPY_EXTENDED_ATTRIBUTES_DISABLE=1 COPYFILE_DISABLE=1 tar
TARFLAGS = cvzf
TEST_F = test -f
TOUCH = touch
TRUE = true
VIM_AFTERBASE_DIR = /Users/c9s/.vim/after
VIM_AFTER_AFTER_DIR = /Users/c9s/.vim/after
VIM_AFTER_AUTOLOAD_DIR = /Users/c9s/.vim/autoload
VIM_AFTER_COLORS_DIR = /Users/c9s/.vim/colors
VIM_AFTER_COMPILER_DIR = /Users/c9s/.vim/compiler
VIM_AFTER_DIR = /Users/c9s/.vim/after
VIM_AFTER_DOC_DIR = /Users/c9s/.vim/doc
VIM_AFTER_FTDETECT_DIR = /Users/c9s/.vim/ftdetect
VIM_AFTER_FTPLUGIN_DIR = /Users/c9s/.vim/ftplugin
VIM_AFTER_MACROS_DIR = /Users/c9s/.vim/macros
VIM_AFTER_PLUGIN_DIR = /Users/c9s/.vim/plugin
VIM_AFTER_SYNTAX_DIR = /Users/c9s/.vim/syntax
VIM_AUTOLOAD_DIR = /Users/c9s/.vim/autoload
VIM_BASEDIR = /Users/c9s/.vim
VIM_COLORS_DIR = /Users/c9s/.vim/colors
VIM_COMPILER_DIR = /Users/c9s/.vim/compiler
VIM_DOC_DIR = /Users/c9s/.vim/doc
VIM_FTDETECT_DIR = /Users/c9s/.vim/ftdetect
VIM_FTPLUGIN_DIR = /Users/c9s/.vim/ftplugin
VIM_MACROS_DIR = /Users/c9s/.vim/macros
VIM_PLUGIN_DIR = /Users/c9s/.vim/plugin
VIM_SYNTAX_DIR = /Users/c9s/.vim/syntax
# -------- file section ------
VIMLIB = .
VIMMETA = META
TO_INST_VIMS = ftplugin/vim/omni.vim
VIMS_TO_RUNT = ftplugin/vim/omni.vim \
$(VIM_BASEDIR)/ftplugin/vim/omni.vim
# -------- main section ------
.PHONY: all install clean uninstall help upload link
all : install-deps
$(NOECHO) $(NOOP)
install : pure_install install-deps
$(NOECHO) $(NOOP)
pure_install :
$(NOECHO) $(FULLPERL) $(PERLFLAGS) -MVIM::Packager::Installer=install -e 'install()' $(NAME) $(VIMS_TO_RUNT) $(BIN_TO_RUNT)
install-deps :
link :
$(NOECHO) $(LN_S) $(PWD)/ftplugin/vim/omni.vim $(VIM_BASEDIR)/ftplugin/vim/omni.vim
link-force :
$(NOECHO) $(LN_SF) $(PWD)/ftplugin/vim/omni.vim $(VIM_BASEDIR)/ftplugin/vim/omni.vim
unlink :
$(NOECHO) $(RM) $(VIM_BASEDIR)/ftplugin/vim/omni.vim
manifest :
$(NOECHO) $(ECHO) ".git" > MANIFEST.SKIP
$(NOECHO) $(ECHO) ".svn" >> MANIFEST.SKIP
$(NOECHO) $(ECHO) ".*.tar.gz" >> MANIFEST.SKIP
$(FULLPERL) $(PERLFLAGS) -MVIM::Packager::Manifest=mkmanifest -e 'mkmanifest'
dist : manifest
$(TAR) $(TARFLAGS) $(DISTNAME).tar.gz $(TO_INST_VIMS) $(META_FILE) $(README) `cat MANIFEST`
$(NOECHO) $(NOOP)
help :
perldoc VIM::Packager
uninstall :
$(NOECHO) $(FULLPERL) $(PERLFLAGS) -MVIM::Packager::Installer=uninstall -e 'uninstall()' $(NAME)
reinstall : uninstall install
$(NOECHO) $(NOOP)
upload : dist
$(FULLPERL) $(PERLFLAGS) -MVIM::Packager::Uploader=upload -e 'upload()' $(PWD)/$(DISTNAME).tar.gz \
$(VIM_VERSION) \
$(VERSION) \
$(SCRIPT_ID)
clean :
$(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD)
$(RM) *.tar.gz
bump :
$(NOECHO) $(FULLPERL) $(PERLFLAGS) -MVIM::Packager::Installer=bump_version -e 'bump_version()'
sh -c 'vim-packager build'
sh -c 'make upload'
release : bump
$(NOECHO) $(NOOP)