From 94bd4728ba260bbda7643e51f1beb9629b6b90d5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 10 Sep 2025 17:31:25 -0500 Subject: load/save config files --- Makefile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f9f0a90..406703e 100644 --- a/Makefile +++ b/Makefile @@ -3,21 +3,21 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) -default: install +default: placement.pb.go install build: GO111MODULE=off go build \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" ./startxplacement -verbose: - GO111MODULE=off go install -v -x \ - -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" - install: goimports GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" +install-verbose: goimports vet + GO111MODULE=off go install -v -x \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + # makes a .deb package debian: rm -f ~/incoming/virtigo*deb @@ -35,4 +35,12 @@ redomod: clean: rm -f go.* - rm -f virtigo* + rm -f *.pb.go + rm -f startxplacement* + +vet: + GO111MODULE=off go vet + @echo 'go vet' worked for this application + +placement.pb.go: placement.proto + autogenpb --proto placement.proto -- cgit v1.2.3