38 lines
530 B
Makefile
38 lines
530 B
Makefile
|
run: build
|
||
|
./go-clone --repo github.com/rclone/rclone
|
||
|
|
||
|
vet:
|
||
|
@GO111MODULE=off go vet
|
||
|
@echo this go library package builds okay
|
||
|
|
||
|
no-gui: build
|
||
|
./go-clone --no-gui
|
||
|
|
||
|
build:
|
||
|
GO111MODULE="off" go build -v
|
||
|
|
||
|
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
|