Skip to content

Commit

Permalink
[ci] refs #17 - More changes to GOPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevNorge committed Jun 26, 2018
1 parent 9a426df commit 8f02021
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Compilation output
PWD = $(shell pwd)
GOPATH_DIR = $(PWD)/gopath
ifeq ($(OS),Windows_NT)
GOPATH = "C:\projects\pyskycoin\gopath"
GOPATH_DIR = "C:\projects\pyskycoin\gopath"
echo "windows"
echo $(GOPATH)
else
GOPATH="$(GOPATH_DIR)"
endifSKYCOIN_DIR = gopath/src/github.com/skycoin/skycoin
GOPATH_DIR = $(PWD)/gopath
endif
SKYCOIN_DIR = gopath/src/github.com/skycoin/skycoin
SKYBUILD_DIR = $(SKYCOIN_DIR)/build
BUILDLIBC_DIR = $(SKYBUILD_DIR)/libskycoin
LIBC_DIR = $(SKYCOIN_DIR)/lib/cgo
Expand All @@ -23,7 +25,7 @@ configure:
mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR)

$(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES)
cd $(SKYCOIN_DIR) && make build-libc-static
cd $(SKYCOIN_DIR) && GOPATH="$(GOPATH_DIR)" make build-libc-static
grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h

## Build libskycoin C client library
Expand Down

0 comments on commit 8f02021

Please sign in to comment.