forked from pcarrier/gauth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (22 loc) · 818 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
M = $(shell printf "\033[34;1m▶\033[0m")
######################
### MAIN FUNCTIONS ###
######################
.PHONY: build
build: ## Build the application for all envs
@$(MAKE) build_linux
@$(MAKE) build_windows
@$(MAKE) build_mac
.PHONY: build_linux
build_linux: ## Build the application for linux
go build -o ./bin/gauth_linux .
.PHONY: build_windows
build_windows: ## Build the application for windows
env GOOS=windows GOARCH=amd64 go build -o ./bin/gauth_windows.exe .
.PHONY: build_mac
build_mac: ## Build the application for windows
env GOOS=darwin GOARCH=amd64 go build -o ./bin/gauth_mac.app .
.PHONY: help
help: ## Prints this help message
@grep -E '^[a-zA-Z_-]+:.*## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help