summaryrefslogtreecommitdiff
path: root/Makefile
blob: bef96ae8573b5ef5ea2e29fe9c12cf411da2ab38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
VERSION = $(shell git describe --tags)

run: build
	./go-clone --work 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 -ldflags "-X main.VERSION=${VERSION}" -ldflags "-X main.GUIVERSION=${VERSION}"
	GO111MODULE=off go build -v -ldflags "-X main.GUIVERSION=${VERSION}"

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