diff --git a/Makefile b/Makefile index d36a0bd..8511ee6 100644 --- a/Makefile +++ b/Makefile @@ -2,20 +2,8 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) run: build - @#./go-clone --work github.com/rclone/rclone - @# ./go-clone --work go.wit.com/apps/basicwindow ./go-clone --version -# test using --no-work against ~/go/src -homeGoSrc: build - -rm ~/go/src/go.work* - go clean -cache -modcache - -rm -rf ../basicwindow/ - ./go-clone --no-work go.wit.com/apps/basicwindow - -modernc: build - ./go-clone --no-work --recursive modernc.org/sqlite - vet: @GO111MODULE=off go vet @echo this go library package builds okay @@ -25,16 +13,11 @@ no-gui: build build: GO111MODULE=off go build -v \ - -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" - -build-go-1.21: - @#GO111MODULE=off /usr/lib/go-1.21/bin/go build -v -ldflags "-X main.VERSION=${VERSION}" - @# GO111MODULE=off /usr/lib/go-1.21/bin/go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}" - @# GO111MODULE=off go build -v -ldflags "-X main.GUIVERSION=${VERSION}" + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" install: GO111MODULE=off go install -v \ - -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" goimports: goimports -w *.go @@ -73,3 +56,6 @@ pullreal: build fetch: build ./go-clone --dry-run --fetch + +modernc: build + ./go-clone --no-work --recursive modernc.org/sqlite