-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 1.12 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
.SILENT:
.PHONY: help
# Based on https://gist.github.com/prwhite/8168133#comment-1313022
## This help screen
help:
printf "Available commands\n\n"
awk '/^[a-zA-Z\-\_0-9]+:/ { \
helpMessage = match(lastLine, /^## (.*)/); \
if (helpMessage) { \
helpCommand = substr($$1, 0, index($$1, ":")-1); \
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
printf "%-40s -- %s\n", helpCommand, helpMessage; \
} \
} \
{ lastLine = $$0 }' $(MAKEFILE_LIST)
# Skips the first word
arguments := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
## Install local environment
install-local:
infrastructure/local/scripts/install.sh
## Start local environment
start-local:
infrastructure/local/scripts/start.sh
## Stop local environment
stop-local:
infrastructure/local/scripts/stop.sh
## Reset local environment
reset-local:
infrastructure/local/scripts/reset-environment.sh
# Export keycloak dev realm from local environment
export-keycloak-dev-realm:
infrastructure/local/scripts/export-keycloak-dev-realm.sh
run-backend-cli-command-in-local-environment:
infrastructure/local/scripts/run-backend-cli-command.sh "$(arguments)"