forked from clojure-lsp/clojure-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (72 loc) · 2.48 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
all: debug-cli
# NOTE!
#
# Older versions of the clojure launcher script may not work with this Makefile
#
# If you see errors (e.g. file not found errors) please download and install
# the latest version of the clojure launcher script for your platform from
#
# https://clojure.org/guides/getting_started#_clojure_installer_and_cli_tools
clean:
rm -rf cli/target \
cli/clojure-lsp \
cli/clojure-lsp-standalone.jar \
lib/clojure-lsp.jar \
clojure-lsp \
clojure-lsp*.jar \
docs/README.md \
docs/CHANGELOG.md
classes:
cd cli && clojure -T:build javac
lib-pom:
cd lib && clojure -T:build pom
cli-pom:
cd cli && clojure -T:build pom
lib-jar:
cd lib && clojure -T:build jar
mv lib/target/clojure-lsp.jar .
cli-jar:
cd cli && clojure -T:build prod-jar
mv cli/target/clojure-lsp-standalone.jar .
cli-jar-for-native:
cd cli && clojure -T:build prod-jar-for-native
mv cli/target/clojure-lsp-standalone.jar .
debug-cli:
cd cli && clojure -T:build debug-cli
mv cli/clojure-lsp .
debug-perf-cli:
cd cli && clojure -T:build debug-perf-cli
mv cli/clojure-lsp .
prod-cli:
cd cli && clojure -T:build prod-cli
mv cli/clojure-lsp .
native-cli:
cd cli && clojure -T:build native-cli
mv cli/clojure-lsp .
test: classes
cd lib && clojure -M:test
cd cli && clojure -M:test
pod-test: classes
cd cli && clojure -M:pod-test
integration-test:
cd cli && bb integration-test ../clojure-lsp
lint-clean:
cd cli && clojure -M:run clean-ns --dry --ns-exclude-regex "sample-test.*" --project-root "../"
lint-format:
cd cli && clojure -M:run format --dry --ns-exclude-regex "sample-test.*" --project-root "../"
lint-diagnostics:
cd cli && clojure -M:run diagnostics --ns-exclude-regex "sample-test.*" --project-root "../"
lint-fix:
cd cli && clojure -M:run clean-ns --ns-exclude-regex "sample-test.*" --project-root "../"
cd cli && clojure -M:run format --ns-exclude-regex "sample-test.*" --project-root "../"
release:
./release
deploy-clojars:
cd lib && clojure -T:build deploy-clojars
deploy-clojars-standalone:
cd cli && clojure -T:build deploy-clojars
local-webpage:
cp -rf CHANGELOG.md README.md images docs
docker login docker.pkg.github.com
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs docker.pkg.github.com/clojure-lsp/docs-image/docs-image
.PHONY: all classes debug-cli cli-jar lib-jar cli-jar-for-native prod-cli native-cli test pod-test integration-test local-webpage clean lint-clean lint-format lint-diagnostics lint-fix release