-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
65 lines (48 loc) · 1.1 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
JAVA_HOME=$(shell unset JAVA_HOME; /usr/libexec/java_home -v 21)
.PHONY: verify v
verify v:
./mvnw verify
.PHONY: install i
install i:
./mvnw install
.PHONY: tidy format pretty f
tidy pretty format f:
./mvnw formatter:format
.PHONY: docs watch-docs
docs:
npm run docs:build
mvn javadoc:javadoc
cp -R target/site/apidocs xdocs/.vitepress/dist/
npm run deploy-docs
watch-docs:
mvn asciidoctor:http
.PHONY: ui
ui: ui/query-response-ui.jar
ui/query-response-ui.jar: ui/target/query-response-ui.jar
@cp $< $@
ui/target/query-response-ui.jar: install
@$(MAKE) -C ui build
.PHONY: up
up:
docker compose up -d
.PHONY: down
down:
docker compose down --remove-orphans
.PHONY: repo-clean
repo-clean:
rm -rf ~/.m2/repository/com/studiomediatech/query-response-spring-amqp
.PHONY: demo run-demo
demo: install up
${MAKE} -j4 run-demo
.PHONY: run-demo run-query run-response run-ui start-ui
run-demo: run-ui start-ui run-query run-response
run-query:
sleep 10
${MAKE} -C examples/querying/
run-response:
sleep 10
${MAKE} -C examples/responding/
run-ui:
${MAKE} -C ui/
start-ui:
${MAKE} -C ui-frontend/