🔧 Update Makefile

This commit is contained in:
M. Mert Yildiran 2022-12-30 06:45:53 +03:00
parent 540ad759fa
commit ee718c29b7
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -11,7 +11,7 @@ GIT_VERSION=$(shell git branch --show-current | tr '[:upper:]' '[:lower:]')
BUILD_TIMESTAMP=$(shell date +%s)
export VER?=0.0
help:
help: ## Print this help message.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
build-debug: ## Build for debuging.
@ -19,7 +19,7 @@ build-debug: ## Build for debuging.
${MAKE} build-base
build: ## Build.
export LDFLAGS_EXT='-s -w'
export LDFLAGS_EXT='-extldflags=-static -s -w'
${MAKE} build-base
build-base: ## Build binary (select the platform via GOOS / GOARCH env variables).