1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00
Files
kubo/bin/Rules.mk
Steven Allen 6b0f9f71e0 build: use protoc-gen-* from gomod
Also,

* Make it possible to override the PROTOC binary.
* Remove gx targets.
2019-06-05 10:57:43 -07:00

23 lines
433 B
Makefile

include mk/header.mk
dist_root_$(d)="/ipfs/QmPrXH9jRVwvd7r5MC5e6nV4uauQGzLk1i2647Ye9Vbbwe"
TGTS_$(d) := $(d)/protoc
DISTCLEAN += $(d)/protoc $(d)/tmp
PATH := $(realpath $(d)):$(PATH)
$(TGTS_$(d)):
rm -f $@$(?exe)
ifeq ($(WINDOWS),1)
cp $^$(?exe) $@$(?exe)
else
ln -s $(notdir $^) $@
endif
bin/protoc-gen-gogofaster:
$(call go-build,github.com/gogo/protobuf/protoc-gen-gogofaster)
CLEAN += $(TGTS_$(d))
include mk/footer.mk