build: fix malformed definition of newline
The definition of a newline withe name '\n' was invalid and broke introduced commands-before-first-target syntax errors in the Makefile. This change fixes the poblem by changing the name to the valid name NEWLINE. Signed-off-by: Michael Adam <obnox@samba.org> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
e65d81a73a
commit
c970221299
2 files changed
+4
-5
No files matched your search
@@ -131,7 +131,6 @@ SPACE :=
|
||||
SPACE +=
|
||||
|
||||
# define a newline
|
||||
define \n
|
||||
|
||||
define NEWLINE
|
||||
|
||||
endef
|
||||
@@ -127,13 +127,13 @@ go.init:
|
||||
go.build:
|
||||
@echo === go build $(PLATFORM)
|
||||
$(info Go version: $(shell $(GO) version))
|
||||
$(foreach p,$(GO_STATIC_PACKAGES),@CGO_ENABLED=$(CGO_ENABLED_VALUE) $(GO) build -v -o $(GO_OUT_DIR)/$(lastword $(subst /, ,$(p)))$(GO_OUT_EXT) $(GO_STATIC_FLAGS) $(p)${\n})
|
||||
$(foreach p,$(GO_TEST_PACKAGES),@CGO_ENABLED=$(CGO_ENABLED_VALUE) $(GO) test -v -c -o $(GO_TEST_OUTPUT)/$(lastword $(subst /, ,$(p)))$(GO_OUT_EXT) $(GO_STATIC_FLAGS) $(p)${\n})
|
||||
$(foreach p,$(GO_STATIC_PACKAGES),@CGO_ENABLED=$(CGO_ENABLED_VALUE) $(GO) build -v -o $(GO_OUT_DIR)/$(lastword $(subst /, ,$(p)))$(GO_OUT_EXT) $(GO_STATIC_FLAGS) $(p)$(NEWLINE))
|
||||
$(foreach p,$(GO_TEST_PACKAGES),@CGO_ENABLED=$(CGO_ENABLED_VALUE) $(GO) test -v -c -o $(GO_TEST_OUTPUT)/$(lastword $(subst /, ,$(p)))$(GO_OUT_EXT) $(GO_STATIC_FLAGS) $(p)$(NEWLINE))
|
||||
|
||||
.PHONY: go.install
|
||||
go.install:
|
||||
@echo === go install $(PLATFORM)
|
||||
$(foreach p,$(GO_STATIC_PACKAGES),@CGO_ENABLED=$(CGO_ENABLED_VALUE) $(GO) install -v $(GO_STATIC_FLAGS) $(p)${\n})
|
||||
$(foreach p,$(GO_STATIC_PACKAGES),@CGO_ENABLED=$(CGO_ENABLED_VALUE) $(GO) install -v $(GO_STATIC_FLAGS) $(p)$(NEWLINE))
|
||||
|
||||
# GOJUNIT need to happen in order and NOT in parallel, so call them explicitly
|
||||
.PHONY: go.test.unit
|
||||
|
||||
Reference in new issue
Block a user