Makefile 549 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
all:
	# no-op

godep:
	go get github.com/tools/godep

# saves/vendors third-party dependencies to Godeps/_workspace
# -r flag rewrites import paths to use the vendored path
# ./... performs operation on all packages in tree
vendor: godep
	godep save -r ./...
12

13 14
# TODO revert to `install` once new command refactoring is complete
install_1:
15
	cd cmd/ipfs && go install
16 17 18

# TODO remove once new command refactoring is complete
install_2:
19
	cd cmd/ipfs2 && go install
20 21 22 23 24 25

test: test_go test_sharness

test_go:
	go test ./...

26
test_sharness:
27
	cd test/ && make