Rules.mk 1.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
include mk/header.mk

TGTS_$(d) :=

$(d)/random: Godeps/_workspace/src/github.com/jbenet/go-random/random
	$(go-build)
TGTS_$(d) += $(d)/random

$(d)/random-files: Godeps/_workspace/src/github.com/jbenet/go-random-files/random-files
	$(go-build)
TGTS_$(d) += $(d)/random-files

$(d)/pollEndpoint: thirdparty/pollEndpoint
	$(go-build)
TGTS_$(d) += $(d)/pollEndpoint

$(d)/go-sleep: test/dependencies/go-sleep
	$(go-build)
TGTS_$(d) += $(d)/go-sleep

$(d)/go-timeout: test/dependencies/go-timeout
	$(go-build)
TGTS_$(d) += $(d)/go-timeout

25 26 27 28
$(d)/ma-pipe-unidir: test/dependencies/ma-pipe-unidir
	$(go-build)
TGTS_$(d) += $(d)/ma-pipe-unidir

29 30 31 32 33 34 35 36 37 38 39 40 41
TGTS_GX_$(d) := hang-fds iptb
TGTS_GX_$(d) := $(addprefix $(d)/,$(TGTS_GX_$(d)))

$(TGTS_GX_$(d)):
	go build -i $(go-flags-with-tags) -o "$@" "$(call gx-path,$(notdir $@))"

TGTS_$(d) += $(TGTS_GX_$(d))

# multihash is special
$(d)/multihash:
	go build -i $(go-flags-with-tags) -o "$@" "gx/ipfs/$(shell gx deps find go-multihash)/go-multihash/multihash"
TGTS_$(d) += $(d)/multihash

42 43
# cid-fmt is also special
$(d)/cid-fmt:
Steven Allen's avatar
Steven Allen committed
44
	go build -i $(go-flags-with-tags) -o "$@" "gx/ipfs/$(shell gx deps find go-cidutil)/go-cidutil/cid-fmt"
45 46 47
TGTS_$(d) += $(d)/cid-fmt


48 49 50 51 52 53 54
$(TGTS_$(d)): $$(DEPS_GO)

CLEAN += $(TGTS_$(d))

PATH := $(realpath $(d)):$(PATH)

include mk/footer.mk