@cryptotaxi247 / kubo / commits / 8ce304014

require curl

Juan Batiz-Benet committed Feb 1, 2015 at 00:10 UTC 8ce304014c438e31453b3259420e14396b574400
1 file changed +7 -1
test/sharness/Makefile
+7 -1
@@ -26,7 +26,7 @@ aggregate:
26 @echo "*** $@ ***"
27 lib/test-aggregate-results.sh
28
29 -deps: $(SHARNESS) $(BINS)
29 +deps: $(SHARNESS) $(BINS) curl
30
31 $(SHARNESS):
32 @echo "*** installing $@ ***"
@@ -37,3 +37,9 @@ bin/%: $(IPFS_ROOT)/**/*.go
37 cd .. && make $@
38
39 .PHONY: all clean $(T) aggregate
40 +
41 +# will fail if curl is not installed.
42 +# TODO: get rid of this and install curl with git or ipfs.
43 +install_curl_pls = "curl is required to run tests. please install it"
44 +curl:
45 + @which curl >/dev/null || (echo "$(install_curl_pls)" && false)