diff options
| author | Jeff Carr <[email protected]> | 2025-03-09 00:53:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-09 00:53:36 -0600 |
| commit | b7003bbc767a66e2285c8d1c3b5a068a63af0efe (patch) | |
| tree | 76a26f90c0e7e78fbfc2b440edbec76c03827aa7 /Makefile | |
day #1v0.0.0
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3aa8725 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.PHONY: build + +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d_%H%M) + +all: build + ./gus --version + ./gus + +build: goimports + GO111MODULE=off go build -v -x \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install: + GO111MODULE=off go install -v -x \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +sudo: build + sudo ./gus + +# makes a .deb package +debian: + go-deb --repo go.wit.com/lib/daemons/gus + +goimports: + goimports -w *.go + +clean: + rm -f go.* + rm -f gus |
