Installing from source on an arm64 host downloaded amd64 dependencies and built amd64 plugins, failing once `plugin:install` ran the first binary. The `TARGETARCH` and `GOARCH` make variables now default to the host architecture and remain overridable, and debian packages are labelled with the architecture they were built for. Closes #9217.
11 lines
260 B
Makefile
11 lines
260 B
Makefile
BUILD = plugin-list
|
|
PLUGIN_NAME = plugin
|
|
|
|
clean-plugin-list:
|
|
rm -rf plugin-list
|
|
|
|
plugin-list: clean-plugin-list **/**/plugin-list.go
|
|
GOARCH=$(GOARCH) go build -ldflags="-s -w" $(GO_ARGS) -o plugin-list src/plugin-list/plugin-list.go
|
|
|
|
include ../../common.mk
|