11ROOT =..
22SBE_TOOL_VERSION =$(shell cat $(ROOT ) /version.txt)
33SBE_JAR =$(ROOT ) /sbe-all/build/libs/sbe-all-${SBE_TOOL_VERSION}.jar
4+
45# FIXME: Go doesn't like relative paths so us a gnumake extension for now
56GOPATH =$(realpath $(ROOT ) /gocode)
67
8+ # GO111MODULE=off is required for building with Go 1.16
9+ # GOPATH-style support will be removed in Go 1.17
10+ export GO111MODULE =off
711
812# Convenience during development
913# SAVE_FORMAT=mkdir -p fmt && cp *.go fmt &&
@@ -25,7 +29,7 @@ $(DEP): $(SBE_JAR)
2529go fmt && \
2630go test)
2731
28- # Wil regenerate codecs by removing dependencies
32+ # Will regenerate codecs by removing dependencies
2933clean :
3034rm -f src/* /SbeMarshalling.go src/* /* /SbeMarshalling.go
3135
@@ -56,7 +60,7 @@ src/baseline/SbeMarshalling.go: $(DEP)
5660# The first set does a make install as there is a test that uses
5761# multiple packages and needs them in GOPATH The second set work in
5862# src/foo, and the third need a GOPATH addition as for Java and C++
59- # they geenrate into the same directory but golang doesn't allow that
63+ # they generate into the same directory but golang doesn't allow that
6064test : $(DEP )
6165(export GOPATH=$( GOPATH) && \
6266(for t in baseline extension; do \
@@ -68,7 +72,7 @@ test: $(DEP)
6872go install \
6973; done))
7074(export GOPATH=$( GOPATH) && \
71- (for t in baseline-bigendian mktdata group_with_data group_with_data_extension composite_elements composite since-deprecated simple issue435 issue472 issue483 issue488 issue560; do \
75+ (for t in baseline-bigendian mktdata group_with_data group_with_data_extension composite_elements composite since-deprecated simple issue435 issue472 issue483 issue488 issue560 issue847 issue848 issue849 ; do \
7276cd $(GOPATH ) /src/$$ t && \
7377go build && \
7478go fmt && \
0 commit comments