minor cleanups
This commit is contained in:
parent
2d84244036
commit
91356cd753
20
Makefile
20
Makefile
|
@ -2,20 +2,8 @@ VERSION = $(shell git describe --tags)
|
||||||
BUILDTIME = $(shell date +%Y.%m.%d)
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
@#./go-clone --work github.com/rclone/rclone
|
|
||||||
@# ./go-clone --work go.wit.com/apps/basicwindow
|
|
||||||
./go-clone --version
|
./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:
|
vet:
|
||||||
@GO111MODULE=off go vet
|
@GO111MODULE=off go vet
|
||||||
@echo this go library package builds okay
|
@echo this go library package builds okay
|
||||||
|
@ -27,11 +15,6 @@ build:
|
||||||
GO111MODULE=off go build -v \
|
GO111MODULE=off go build -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}"
|
||||||
|
|
||||||
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}"
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
GO111MODULE=off go install -v \
|
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}"
|
||||||
|
@ -73,3 +56,6 @@ pullreal: build
|
||||||
|
|
||||||
fetch: build
|
fetch: build
|
||||||
./go-clone --dry-run --fetch
|
./go-clone --dry-run --fetch
|
||||||
|
|
||||||
|
modernc: build
|
||||||
|
./go-clone --no-work --recursive modernc.org/sqlite
|
||||||
|
|
Loading…
Reference in New Issue