mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
they have to be a main package License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
16 lines
378 B
Makefile
16 lines
378 B
Makefile
include mk/header.mk
|
|
|
|
$(d)_plugins:=$(d)/git
|
|
$(d)_plugins_so:=$(addsuffix .so,$($(d)_plugins))
|
|
|
|
$($(d)_plugins_so): $$(DEPS_GO) ALWAYS
|
|
go build -buildmode=plugin -i -pkgdir "$$GOPATH/pkg/linux_amd64_dynlink" $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))"
|
|
chmod +x "$@"
|
|
|
|
CLEAN += $($(d)_plugins_so)
|
|
|
|
build_plugins: $($(d)_plugins_so)
|
|
|
|
|
|
include mk/footer.mk
|