kubo/bin/Rules.mk
Jakub Sztandera f66f2f079d
Update gx to version 0.11
Previous version 0.10 was built with faulty version of Go 1.7 which has
problems with TCP -> DNS -> UDP timeouts.

This results in many failed calls to `gx install`

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-21 18:21:16 +01:00

27 lines
600 B
Makefile

include mk/header.mk
dist_root_$(d)=/ipfs/QmNjXP6N98fYT1i7abgeBHmdR5WoeBeik4DtGiX9iFWK31
$(d)/gx: $(d)/gx-v0.11.0
$(d)/gx-go: $(d)/gx-go-v1.4.0
TGTS_$(d) := $(d)/gx $(d)/gx-go
DISTCLEAN += $(wildcard $(d)/gx-v*) $(wildcard $(d)/gx-go-v*) $(d)/tmp
PATH := $(realpath $(d)):$(PATH)
$(TGTS_$(d)):
rm -f $@
ln -s $(notdir $^) $@
bin/gx-v%:
@echo "installing gx $(@:bin/gx-%=%)"
bin/dist_get $(dist_root_bin) gx $@ $(@:bin/gx-%=%)
bin/gx-go-v%:
@echo "installing gx-go $(@:bin/gx-go-%=%)"
@bin/dist_get $(dist_root_bin) gx-go $@ $(@:bin/gx-go-%=%)
CLEAN += $(TGTS_$(d))
include mk/footer.mk