-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (37 loc) · 1.04 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
VIMDIR=$(HOME)/.vim/
VIMDIR_WINDOWS=$(HOMEPATH)\vimfiles
CP=cp
CP_OPTIONS=-pr
DESTDIR=
install:
mkdir -p "$(VIMDIR)"
$(CP) $(CP_OPTIONS) vim/* "$(DESTDIR)$(VIMDIR)"
# This installs in the *Windows* area when running on Cygwin.
install_windows:
$(MAKE) VIMDIR=$(VIMDIR_WINDOWS)
uninstall:
rm -f "$(DESTDIR)$(VIMDIR)"/ftdetect/metamath.vim
rm -f "$(DESTDIR)$(VIMDIR)"/syntax/metamath.vim
# Install symbolic links to the files instead.
install_symlinks:
mkdir -p "$(DESTDIR)$(VIMDIR)/ftdetect"
mkdir -p "$(DESTDIR)$(VIMDIR)/syntax"
ln -s "$(PWD)"/vim/ftdetect/metamath.vim \
"$(DESTDIR)$(VIMDIR)"/ftdetect/metamath.vim
ln -s "$(PWD)"/vim/syntax/metamath.vim \
"$(DESTDIR)$(VIMDIR)"/syntax/metamath.vim
check:
./runtest
test: check
# Make final release
release:
git checkout master
git merge --no-ff develop
echo 'Please enter the new version number (e.g., 1.2.3)'
git tag -a `read vers ; echo "$${vers}"`
echo 'Version tag set to:'
git tag --points-at HEAD
git push
git checkout develop
git merge --no-ff master
git push