diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 08:30:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 08:30:19 -0600 |
| commit | 79e73f9abf7ecec5f9623e349a22f2d7bd05a16c (patch) | |
| tree | 3add3e8c88de7b9c7796d2c2d197356eba11e3f0 /Makefile | |
Day 1
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1026e88 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) + +run: build + ./autogenpb + +vet: + @GO111MODULE=off go vet + @echo this go library package builds okay + +build: + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install: + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +goimports: + goimports -w *.go + # // to globally reset paths: + # // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" . + +redomod: + rm -f go.* + GO111MODULE= go mod init + GO111MODULE= go mod tidy + +reset: + # clear your terminal + reset + +clean: + -rm autogenpb |
