Skip to content

Commit dce21af

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent 15ad4c2 commit dce21af

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Makefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company
77
# SPDX-License-Identifier: Apache-2.0
88

9+
MAKEFLAGS=--warn-undefined-variables
910
# /bin/sh is dash on Debian which does not support all features of ash/bash
1011
# to fix that we use /bin/bash only on Debian to not break Alpine
1112
ifneq (,$(wildcard /etc/os-release)) # check file existence
@@ -55,11 +56,11 @@ install-setup-envtest: FORCE
5556

5657
# To add additional flags or values, specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.
5758
# To override the default flags or values, specify the variable on the command line, e.g. `make GO_BUILDFLAGS='-tags experimental'`.
58-
GO_BUILDFLAGS := $(GO_BUILDFLAGS)
59-
GO_LDFLAGS := $(GO_LDFLAGS)
60-
GO_TESTFLAGS := $(GO_TESTFLAGS)
61-
GO_TESTENV := $(GO_TESTENV)
62-
GO_BUILDENV := $(GO_BUILDENV)
59+
GO_BUILDFLAGS +=
60+
GO_LDFLAGS +=
61+
GO_TESTFLAGS +=
62+
GO_TESTENV +=
63+
GO_BUILDENV +=
6364

6465
# which packages to test with test runner
6566
GO_TESTPKGS := $(shell go list -f '{{if or .TestGoFiles .XTestGoFiles}}{{.ImportPath}}{{end}}' ./...)
@@ -150,11 +151,9 @@ clean: FORCE
150151
git clean -dxf build
151152

152153
vars: FORCE
153-
@printf "GO_BUILDENV=$(GO_BUILDENV)\n"
154154
@printf "GO_BUILDFLAGS=$(GO_BUILDFLAGS)\n"
155155
@printf "GO_COVERPKGS=$(GO_COVERPKGS)\n"
156156
@printf "GO_LDFLAGS=$(GO_LDFLAGS)\n"
157-
@printf "GO_TESTENV=$(GO_TESTENV)\n"
158157
@printf "GO_TESTFLAGS=$(GO_TESTFLAGS)\n"
159158
@printf "GO_TESTPKGS=$(GO_TESTPKGS)\n"
160159
@printf "MAKE=$(MAKE)\n"

0 commit comments

Comments
 (0)