mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
As shasum is not installed on all machines and we use multihash anyway in the code base, it removes one dependency to use shasum instead of shasum in the tests. Now that there are sharness tests in multihash it is also safe to use it. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
38 lines
717 B
Makefile
38 lines
717 B
Makefile
|
|
BINS = bin/random bin/multihash bin/ipfs
|
|
IPFS_ROOT = ../
|
|
IPFS_CMD = ../cmd/ipfs
|
|
RANDOM_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random
|
|
MULTIHASH_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-multihash
|
|
|
|
all: deps
|
|
|
|
deps: bins
|
|
|
|
clean:
|
|
rm $(BINS)
|
|
|
|
bins: $(BINS)
|
|
|
|
bin/random: $(RANDOM_SRC)/**/*.go
|
|
go build -o bin/random $(RANDOM_SRC)/random
|
|
|
|
bin/multihash: $(MULTIHASH_SRC)/**/*.go
|
|
go build -o bin/multihash $(MULTIHASH_SRC)/multihash
|
|
|
|
bin/ipfs: $(IPFS_ROOT)/**/*.go
|
|
go build -o bin/ipfs $(IPFS_CMD)
|
|
|
|
test: test_expensive
|
|
|
|
test_expensive:
|
|
cd sharness && make TEST_EXPENSIVE=1
|
|
cd 3nodetest && make
|
|
cd dependencies && make
|
|
|
|
test_cheap:
|
|
cd sharness && make
|
|
cd 3nodetest && make
|
|
|
|
.PHONY: all clean
|