Skip to content

Commit

Permalink
Makefile: support passing build tags via environment
Browse files Browse the repository at this point in the history
build tags can be passed via GO_BUILDTAGS environment variable.

Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
  • Loading branch information
metux committed Aug 4, 2023
1 parent 0701e9b commit 5d76d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

PACKAGES=$(shell go list ./... | grep -v /vendor/)
GO_TAGS=$(if $(GO_BUILDTAGS),-tags "$(strip $(GO_BUILDTAGS))",)

all: cgutil
go build -v
go build -v $(GO_TAGS)

cgutil:
cd cmd/cgctl && go build -v
cd cmd/cgctl && go build -v $(GO_TAGS)

proto:
protobuild --quiet ${PACKAGES}
Expand Down

0 comments on commit 5d76d3d

Please sign in to comment.