-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
64 lines (50 loc) · 2.66 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
##
## ----------------------------------------------------------------------------
## Docker
## ----------------------------------------------------------------------------
##
docker-start-chaturbate-dvr: ## Start docker Chaturbate DVR
docker-compose -f docker-compose.yml up -d
docker-stop-chaturbate-dvr: ## Stop docker Chaturbate DVR
docker-compose -f docker-compose.yml down
docker-restart-chaturbate-dvr: ## Restart project Chaturbate DVR
docker-compose -f docker-compose.yml restart
docker-start-chaturbate-dvr-web: ## Start docker Chaturbate DVR WEB
docker-compose -f docker-compose-web.yml up -d
docker-stop-chaturbate-dvr-web: ## Stop docker Chaturbate DVR WEB
docker-compose -f docker-compose-web.yml down
docker-restart-chaturbate-dvr-web: ## Restart project Chaturbate DVR WEB
docker-compose -f docker-compose-web.yml restart
.PHONY: docker-start-chaturbate-dvr docker-stop-chaturbate-dvr docker-restart-chaturbate-dvr docker-start-chaturbate-dvr-web docker-stop-chaturbate-dvr-web docker-restart-chaturbate-dvr-web
##
## ----------------------------------------------------------------------------
## Compile
## ----------------------------------------------------------------------------
##
64bit-windows-macos-linux: ## Compile all arch amd64
GOOS=windows GOARCH=amd64 go build -o bin/windows/chatubrate-dvr.exe && \
GOOS=darwin GOARCH=amd64 go build -o bin/darwin/chatubrate-dvr && \
GOOS=linux GOARCH=amd64 go build -o bin/linux/chatubrate-dvr
arm64-windows-macos-linux: ## Compile all arch arm64
GOOS=windows GOARCH=arm64 go build -o bin/arm64/windows/chatubrate-dvr.exe && \
GOOS=darwin GOARCH=arm64 go build -o bin/arm64/darwin/chatubrate-dvr && \
GOOS=linux GOARCH=arm64 go build -o bin/arm64/linux/chatubrate-dvr
compile-all: ## Compile all
GOOS=windows GOARCH=amd64 go build -o bin/windows/chatubrate-dvr.exe && \
GOOS=darwin GOARCH=amd64 go build -o bin/darwin/chatubrate-dvr && \
GOOS=linux GOARCH=amd64 go build -o bin/linux/chatubrate-dvr && \
GOOS=windows GOARCH=arm64 go build -o bin/arm64/windows/chatubrate-dvr.exe && \
GOOS=darwin GOARCH=arm64 go build -o bin/arm64/darwin/chatubrate-dvr && \
GOOS=linux GOARCH=arm64 go build -o bin/arm64/linux/chatubrate-dvr
.PHONY: 64bit-windows-macos-linux arm64-windows-macos-linux
##
## ----------------------------------------------------------------------------
## Help
## ----------------------------------------------------------------------------
##
.DEFAULT_GOAL := help
.PHONY: help
help: ## Show this help
@egrep -h '(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' \
| sed -e 's/\[32m##/[33m/'