@@ -295,11 +295,14 @@ status-go-deps:
295295 go clean -modcache || true
296296 go install google.golang.org/protobuf/cmd/
[email protected] 297297
298+ statusgo-c-bindings : STATUS_GO_BINDINGS_PATH ?= build/bin/statusgo-lib
298299statusgo-c-bindings :
299- # # cmd/library/README.md explains the magic incantation behind this
300- mkdir -p build/bin/statusgo-lib
301- go run -mod=mod cmd/library/* .go > build/bin/statusgo-lib /main.go
300+ @ # # cmd/library/README.md explains the magic incantation behind this
301+ mkdir -p $( STATUS_GO_BINDINGS_PATH )
302+ go run -mod=mod cmd/library/* .go > $( STATUS_GO_BINDINGS_PATH ) /main.go
302303
304+ statusgo-library : STATUS_GO_BINDINGS_PATH ?= build/bin/statusgo-lib
305+ statusgo-library : STATUS_GO_LIBRARY_OUT ?= build/bin
303306statusgo-library : generate
304307statusgo-library : statusgo-c-bindings $(LIBWAKU ) $(LIBSDS ) # #@cross-compile Build status-go as static library for current platform
305308 @echo " Building static library..."
@@ -308,10 +311,9 @@ statusgo-library: statusgo-c-bindings $(LIBWAKU) $(LIBSDS) ##@cross-compile Buil
308311 -tags ' $(BUILD_TAGS)' \
309312 $(BUILD_FLAGS ) \
310313 -buildmode=c-archive \
311- -o build/bin/libstatus.a \
312- ./build/bin/statusgo-lib
313- @echo " Static library built:"
314- @ls -la build/bin/libstatus.*
314+ -o $(STATUS_GO_LIBRARY_OUT ) /libstatus.a \
315+ " $( STATUS_GO_BINDINGS_PATH) /main.go"
316+ @echo " Static library built: $( STATUS_GO_LIBRARY_OUT) /libstatus.a"
315317
316318statusgo-shared-library : generate
317319statusgo-shared-library : statusgo-c-bindings $(LIBWAKU ) $(LIBSDS ) # #@cross-compile Build status-go as shared library for current platform
@@ -383,7 +385,8 @@ generate: GO_GENERATE_CMD ?= go tool go-generate-fast
383385generate : export GO_GENERATE_FAST_DEBUG ?= false
384386generate : export GO_GENERATE_FAST_RECACHE ?= false
385387generate : # #@ Run generate for all given packages using go-generate-fast, fallback to `go generate` (e.g. for docker)
386- @GOROOT=$$(go env GOROOT ) $(GO_GENERATE_CMD ) $(PACKAGES )
388+ @echo " GO_GENERATE_CMD = $( GO_GENERATE_CMD) "
389+ GOROOT=$$(go env GOROOT ) $(GO_GENERATE_CMD ) $(PACKAGES )
387390
388391generate-contracts :
389392 go generate ./contracts
0 commit comments