2024-03-07 16:45:49 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
|
2024-03-07 00:50:58 -06:00
|
|
|
run: build
|
2024-03-08 14:41:22 -06:00
|
|
|
@#./go-clone --work github.com/rclone/rclone
|
2024-03-09 16:49:27 -06:00
|
|
|
@# ./go-clone --work go.wit.com/apps/basicwindow
|
2024-10-11 21:19:58 -05:00
|
|
|
./go-clone --version
|
2024-03-09 16:49:27 -06:00
|
|
|
|
|
|
|
# test using --no-work against ~/go/src
|
|
|
|
homeGoSrc: build
|
2024-03-21 19:43:26 -05:00
|
|
|
-rm ~/go/src/go.work*
|
|
|
|
go clean -cache -modcache
|
|
|
|
-rm -rf ../basicwindow/
|
2024-03-09 16:49:27 -06:00
|
|
|
./go-clone --no-work go.wit.com/apps/basicwindow
|
|
|
|
|
|
|
|
modernc: build
|
2024-03-21 22:47:17 -05:00
|
|
|
./go-clone --no-work --recursive modernc.org/sqlite
|
2024-03-07 00:50:58 -06:00
|
|
|
|
|
|
|
vet:
|
|
|
|
@GO111MODULE=off go vet
|
|
|
|
@echo this go library package builds okay
|
|
|
|
|
|
|
|
no-gui: build
|
|
|
|
./go-clone --no-gui
|
|
|
|
|
|
|
|
build:
|
2024-11-07 07:03:51 -06:00
|
|
|
GO111MODULE=off go build -v \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
|
2024-03-21 19:43:26 -05:00
|
|
|
|
|
|
|
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}"
|
2024-03-07 22:07:40 -06:00
|
|
|
@# GO111MODULE=off go build -v -ldflags "-X main.GUIVERSION=${VERSION}"
|
2024-03-07 00:50:58 -06:00
|
|
|
|
|
|
|
install:
|
|
|
|
GO111MODULE="off" go install -v
|
|
|
|
|
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
|
|
|
reset:
|
|
|
|
# clear your terminal
|
|
|
|
reset
|
|
|
|
|
2024-11-07 07:03:51 -06:00
|
|
|
gui-gocui: build
|
2024-03-07 00:50:58 -06:00
|
|
|
reset
|
|
|
|
./go-clone --gui gocui >/tmp/witgui.log.stderr 2>&1
|
|
|
|
|
|
|
|
nocui: reset build
|
|
|
|
./go-clone --gui nocui
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm go-clone
|
2024-10-11 21:13:13 -05:00
|
|
|
|
|
|
|
# this will test the golang.org/x -> googlesource override
|
|
|
|
git-clone:
|
|
|
|
./go-clone --recursive --go-src --no-work go.wit.com/lib/daemons/virtigod
|
2024-10-12 13:47:06 -05:00
|
|
|
|
|
|
|
debian:
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/go-clone
|