-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
71 lines (52 loc) · 1.95 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
LANGUAGE_SERVER = 4.6.0.2652
JAVASCRIPT_PLUGIN = 9.1.1.17782
JAVA_PLUGIN = 7.9.0.28969
PHP_PLUGIN = 3.9.0.6331
PYTHON_PLUGIN = 3.9.0.9230
HTML_PLUGIN = 3.6.0.3106
OUT_FILES = \
out/sonarlint-language-server-$(LANGUAGE_SERVER).jar \
out/sonar-javascript-plugin-$(JAVASCRIPT_PLUGIN).jar \
out/sonar-java-plugin-$(JAVA_PLUGIN).jar \
out/sonar-php-plugin-$(PHP_PLUGIN).jar \
out/sonar-python-plugin-$(PYTHON_PLUGIN).jar \
out/sonar-html-plugin-$(HTML_PLUGIN).jar \
out/LSP-SonarLint.sublime-settings \
out/LSP-SonarLint.sublime-commands \
out/plugin.py \
out/LICENSE \
out/NOTICE \
out/.no-sublime-package
all: out/release.zip
out/release.zip: $(OUT_FILES)
cd out && zip -q -r release.zip .
out/LSP-SonarLint.sublime-settings: out LSP-SonarLint.sublime-settings
cp LSP-SonarLint.sublime-settings out/LSP-SonarLint.sublime-settings
out/LSP-SonarLint.sublime-commands: out LSP-SonarLint.sublime-commands
cp LSP-SonarLint.sublime-commands out/LSP-SonarLint.sublime-commands
out/plugin.py: out plugin.py
cp plugin.py out/plugin.py
out/LICENSE: out LICENSE
cp LICENSE out/LICENSE
out/NOTICE: out NOTICE
cp NOTICE out/NOTICE
out/.no-sublime-package: out
touch out/.no-sublime-package
fetch = curl --silent https://binaries.sonarsource.com/Distribution/$(1)/$(1)-$(2).jar -o out/$(1)-$(2).jar
out/sonarlint-language-server-$(LANGUAGE_SERVER).jar: out
$(call fetch,sonarlint-language-server,$(LANGUAGE_SERVER))
out/sonar-javascript-plugin-$(JAVASCRIPT_PLUGIN).jar: out
$(call fetch,sonar-javascript-plugin,$(JAVASCRIPT_PLUGIN))
out/sonar-java-plugin-$(JAVA_PLUGIN).jar: out
$(call fetch,sonar-java-plugin,$(JAVA_PLUGIN))
out/sonar-php-plugin-$(PHP_PLUGIN).jar: out
$(call fetch,sonar-php-plugin,$(PHP_PLUGIN))
out/sonar-python-plugin-$(PYTHON_PLUGIN).jar: out
$(call fetch,sonar-python-plugin,$(PYTHON_PLUGIN))
out/sonar-html-plugin-$(HTML_PLUGIN).jar: out
$(call fetch,sonar-html-plugin,$(HTML_PLUGIN))
out:
mkdir -p out
clean:
rm -rf out
.PHONY: all clean