forked from alephium/alephium-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 1003 Bytes
/
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
.ONESHELL:
all: help
start-devnet: ## start the devnet
@echo ''
cd devnet && echo '' && \
if docker --help | grep -q 'compose'; then \
docker compose up -d --force-recreate --remove-orphans; \
else \
docker-compose up -d --force-recreate --remove-orphans; \
fi
@echo ''
@echo 'Useful resouces:'
@echo ' - Node Swagger: http://127.0.0.1:22973/docs'
@echo ' - Explorer Swagger: http://127.0.0.1:9090/docs'
@echo ' - Explorer Frontend: http://localhost:23000'
@echo ''
stop-devnet: ## stop the devnet
@echo ''
cd devnet && echo '' && \
if docker --help | grep -q 'compose'; then \
docker compose down; \
else \
docker-compose down; \
fi
restart-devnet: ## restart the devnet
@make stop-devnet
@make start-devnet
help: ## print this help
@grep '##' $(MAKEFILE_LIST) \
| grep -Ev 'grep|###' \
| sed -e 's/^\([^:]*\):[^#]*##\([^#]*\)$$/\1:\2/' \
| awk -F ":" '{ printf "%-25s%s\n", "\033[1;32m" $$1 ":\033[m", $$2 }' \
| grep -v 'sed'