forked from fsharp/zarchive-vim-fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 1.08 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
# Directories
bin_d = $(abspath ftplugin/bin)
# Installation paths.
#dest_root = $(HOME)/.vim/bundle/vim-fsharp/
#dest_bin = $(dest_root)/ftplugin/bin/
ac_exe = $(bin_d)/fsautocomplete.exe
ac_archive = fsautocomplete.zip
ac_version = 0.34.0
ac_url = https://github.com/fsharp/FSharp.AutoComplete/releases/download/$(ac_version)/$(ac_archive)
git_url = https://github.com/fsharp/FsAutoComplete.git
# ----------------------------------------------------------------------------
# Building
fsautocomplete : $(ac_exe)
$(ac_exe) : $(bin_d)
curl -L "$(ac_url)" -o "$(bin_d)/$(ac_archive)"
unzip "$(bin_d)/$(ac_archive)" -d "$(bin_d)"
touch "$(ac_exe)"
~/.config/.mono/certs:
mozroots --import --sync --quiet
$(dest_root) :; mkdir -p $(dest_root)
$(dest_bin) :; mkdir -p $(dest_bin)
$(bin_d) :; mkdir -p $(bin_d)
# Cleaning
clean :
rm -rf $(bin_d)
rm -rf FsAutoComplete
git :
rm -rf FsAutoComplete
rm -rf $(bin_d)
git clone $(git_url)
./FsAutoComplete/build.sh BuildRelease
mkdir $(bin_d)
cp FsAutoComplete/src/FsAutoComplete/bin/Release/* $(bin_d)
.PHONY: fsautocomplete