go-clone/Makefile

41 lines
719 B
Makefile
Raw Normal View History

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-07 19:30:09 -06:00
./go-clone --work github.com/rclone/rclone
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-03-07 16:45:49 -06:00
# GO111MODULE=off go build -v -ldflags "-X main.VERSION=${VERSION}" -ldflags "-X main.GUIVERSION=${VERSION}"
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
gocui: build
reset
./go-clone --gui gocui >/tmp/witgui.log.stderr 2>&1
nocui: reset build
./go-clone --gui nocui
clean:
-rm go-clone