Skip to content

Commit d3da286

Browse files
Remove MAKEFLAGS=--warn-undefined-variables
This is not generally required, and could manually be added as command line argumen when needed e.g. to debug a Makefile. > `--warn-undefined-variables' > > Issue a warning message whenever make sees a reference to an undefined > variable. This can be helpful when you are trying to debug makefiles > which use variables in complex ways.
1 parent 8f69811 commit d3da286

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Makefile

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

9-
MAKEFLAGS=--warn-undefined-variables
109
# /bin/sh is dash on Debian which does not support all features of ash/bash
1110
# to fix that we use /bin/bash only on Debian to not break Alpine
1211
ifneq (,$(wildcard /etc/os-release)) # check file existence

internal/makefile/makefile.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ func newMakefile(cfg core.Configuration, sr golang.ScanResult) *makefile {
4646
// General
4747
general := category{name: "general"}
4848

49-
general.addDefinition("MAKEFLAGS=--warn-undefined-variables")
5049
general.addDefinition(strings.TrimSpace(`
5150
# /bin/sh is dash on Debian which does not support all features of ash/bash
5251
# to fix that we use /bin/bash only on Debian to not break Alpine

0 commit comments

Comments
 (0)