88export GOPATH := $(shell go env GOPATH)
99GOPATH1 := $(firstword $(subst :, ,$(GOPATH ) ) )
1010endif
11+ export GO111MODULE := on
1112export GOPROXY := direct
1213SRCPATH := $(shell pwd)
1314ARCH := $(shell ./scripts/archtype.sh)
@@ -60,6 +61,10 @@ EXTLDFLAGS := -static -static-libstdc++ -static-libgcc
6061export GOBUILDMODE := -buildmode=exe
6162endif
6263
64+ ifeq ($(SHORT_PART_PERIOD ) , 1)
65+ export SHORT_PART_PERIOD_FLAG := -s
66+ endif
67+
6368GOTAGS := --tags "$(GOTAGSLIST ) "
6469GOTRIMPATH := $(shell GOPATH=$(GOPATH ) && go help build | grep -q .-trimpath && echo -trimpath)
6570
@@ -75,7 +80,7 @@ GOLDFLAGS := $(GOLDFLAGS_BASE) \
7580UNIT_TEST_SOURCES := $(sort $(shell GOPATH=$(GOPATH ) && GO111MODULE=off && go list ./... | grep -v /go-algorand/test/ ) )
7681ALGOD_API_PACKAGES := $(sort $(shell GOPATH=$(GOPATH ) && GO111MODULE=off && cd daemon/algod/api; go list ./... ) )
7782
78- MSGP_GENERATE := ./protocol ./protocol/test ./crypto ./crypto/compactcert ./data/basics ./data/transactions ./data/committee ./data/bookkeeping ./data/hashable ./agreement ./rpcs ./node ./ledger ./ledger/ledgercore ./compactcert ./data/account
83+ MSGP_GENERATE := ./protocol ./protocol/test ./crypto ./crypto/merklearray ./crypto/merklesignature ./crypto/ compactcert ./data/basics ./data/transactions ./data/committee ./data/bookkeeping ./data/hashable ./agreement ./rpcs ./node ./ledger ./ledger/ledgercore ./compactcert ./data/account
7984
8085default : build
8186
@@ -289,7 +294,7 @@ gen/%/genesis.dump: gen/%/genesis.json
289294 ./scripts/dump_genesis.sh $< > $@
290295
291296gen/% /genesis.json : gen/% .json gen/generate.go buildsrc
292- $(GOPATH1 ) /bin/genesis -q -n $(shell basename $(shell dirname $@ ) ) -c $< -d $(subst .json,,$< )
297+ $(GOPATH1 ) /bin/genesis -q $( SHORT_PART_PERIOD_FLAG ) -n $(shell basename $(shell dirname $@ ) ) -c $< -d $(subst .json,,$< )
293298
294299gen : $(addsuffix gen, $(NETWORKS ) ) mainnetgen
295300
0 commit comments