summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index d12558b..ab957ed 100644
--- a/Makefile
+++ b/Makefile
@@ -12,11 +12,12 @@ verbose:
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
-install:
+install: goimports
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports:
+ reset
goimports -w *.go
@# // to globally reset paths:
@# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
@@ -24,37 +25,25 @@ goimports:
gocui: install
forge --gui gocui
-check-git-clean:
- @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
-
-redomod:
- rm -f go.*
- GO111MODULE= go mod init
- GO111MODULE= go mod tidy
-
redomod-all:
forge --do-RedoGoMod
redomod-erase:
forge --do-RedoGoMod --do-erase
-list: install
- reset
- forge --do-list
-
private: install
reset
forge --find-private
-list-fix: install
+fix: install
reset
- forge --do-list --do-fix
+ forge --fix
-list-readonly: install
+readonly: install
reset
forge --do-list --find-readonly
-list-config: install
+config: install
forge --config
scan: install