From 92a27c960cb29e4ff3e41dde9c9227370073b56b Mon Sep 17 00:00:00 2001 From: Rob Mills Date: Mon, 15 Feb 2021 15:23:52 -0500 Subject: [PATCH] Allow overriding of Makefile env vars Enables an environment to override the default Makefile environment variables used to release the compiled binaries. --- .gitignore | 3 +++ Makefile | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 37be50f..ce0436e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ /dist/ /slack-docker + +# direnv file that sets directory-scoped environment variables; useful for testing the Makefile targets +.envrc diff --git a/Makefile b/Makefile index 47e9035..d98630e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ TARGET := slack-docker VERSION ?= latest -GITHUB_USERNAME := int128 -GITHUB_REPONAME := slack-docker +GITHUB_USERNAME ?= int128 +GITHUB_REPONAME ?= slack-docker LDFLAGS := -X main.version=$(VERSION) OSARCH := linux_arm64 linux_amd64 darwin_amd64 windows_amd64 linux_arm