diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -1,15 +1,27 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d_%H%M) -simple: build - make -C example clean simpleMutexGlobal goimports vet - make -C example clean simpleMutexProtoc goimports vet +simple: test + # make -C example clean simpleMutexGlobal goimports vet + # make -C example clean simpleMutexProtoc goimports vet # make -C example deleteproto full: install clean auto goimports vet build test install @echo everything worked and the example ran -test: goimports build test + +# if this passes, it should be OK to 'go install' +test: + reset + make goimports vet build + make -C example testGlobal + make -C example testProtoc + +dryrun: build + make -C example dryrun + +dryrun-clean: clean auto build + make -C example dryrun vet: @GO111MODULE=off go vet @@ -31,7 +43,7 @@ build: goimports bak: mv -f autogenpb autogenpb.last -install: +install: test GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" @@ -40,12 +52,6 @@ auto: autogenpb --proto file.proto --package main # rm -f auto.sort.pb.go auto.newsort.pb.go # auto.marshal.pb.go -test: - make -C example rawproto - # The Go Protocol Buffers library embeds a sync.Mutex within the MessageState struct to prevent unintended shallow copies of message structs - # It only fails in Marshal() functions though. That is dumb. - make -C example modproto # THIS DOES NOT WORK. It could work however. This autogenerated code could be used to debug it. - junk: cd example; rm -f go.* *.pb.go cd example; ../autogenpb --proto file.proto --package yellow |
