make: readd the path check functionality

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2017-03-15 13:12:28 +01:00
parent 174a566ae6
commit 5ae31f4a2a
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
2 changed files with 7 additions and 0 deletions

View File

@ -46,5 +46,10 @@ check_go_version:
.PHONY: check_go_version
DEPS_GO += check_go_version
check_go_path:
bin/check_go_path $(realpath $(shell pwd)) $(realpath $(addsuffix /src/github.com/ipfs/go-ipfs,$(subst $(PATH_SEP),$(space),$(GOPATH))))
.PHONY: check_go_path
DEPS_GO += check_go_path
TEST += $(TEST_GO)
TEST_SHORT += test_go_fmt test_go_short

View File

@ -2,8 +2,10 @@
ifeq ($(OS),Windows_NT)
WINDOWS :=1
?exe :=.exe # windows compat
PATH_SEP :=;
else
?exe :=
PATH_SEP :=:
endif
space:=