summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 20 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index a8a7de7..c22d05e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,13 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
-all: vet build
- ./forge -h
+all: goimports vet install
+ forge -h
vet:
@GO111MODULE=off go vet
@echo this go binary package builds okay
-build:
- GO111MODULE=off go build \
- -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
-
verbose:
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
@@ -25,8 +21,8 @@ goimports:
@# // to globally reset paths:
@# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
-gocui: build
- ./forge --gui gocui
+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)
@@ -37,34 +33,34 @@ redomod:
GO111MODULE= go mod tidy
redomod-all:
- ./forge --RedoGoMod
+ forge --RedoGoMod
redomod-erase:
- ./forge --RedoGoMod --erase
+ forge --RedoGoMod --erase
-list: build
+list: install
reset
- ./forge --list
+ forge --list
-list-private: build
+list-private: install
reset
- ./forge --list --private
+ forge --list --private
-list-fix: build
+list-fix: install
reset
- ./forge --list --fix
+ forge --list --fix
-list-readonly: build
+list-readonly: install
reset
- ./forge --list --readonly
+ forge --list --readonly
-list-config: build
- ./forge --list-conf
+list-config: install
+ forge --list-conf
-scan: build
+scan: install
reset
- ./forge --scan
+ forge --scan
-mine: build
- ./forge --mine
+mine: install
+ forge --mine