-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 817 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
.DEFAULT_GOAL = help
check:
@if ! [ $(shell command -v docker-compose 2> /dev/null) ]; then\
echo "[WANR]: docker-compose bin not found use -> make docker-setup";\
exit 1;\
elif ! [ $(shell command -v docker 2> /dev/null) ]; then\
echo "[WANR]: docker bin not found use -> make docker-setup";\
exit 1;\
else\
echo "ALL CHECK AND READY TO GO!";\
fi
ip-setup: static_ip.sh
./static_ip.sh
docker-setup: docker-setup.sh
./docker-setup.sh
services-install: install-services.sh docker-compose.yml
./install-services.sh
all: services-install docker-setup check
$(MAKE) check
$(MAKE) docker-setup
$(MAKE) ip-setup
$(MAKE) services-install
help: # Show all commands
@egrep -h '\s#\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?# "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'