diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 27 |
1 files changed, 15 insertions, 12 deletions
@@ -1,8 +1,12 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) -all: build - ./forge +all: vet build + ./forge -h + +vet: + @GO111MODULE=off go vet + @echo this go binary package builds okay build: GO111MODULE=off go build \ @@ -16,22 +20,13 @@ install: GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -only-me: build - reset - ./forge --only-me - -stderr: build - echo "writing to /tmp/forge.log" - ./forge >/tmp/forge.log 2>&1 - goimports: goimports -w *.go @# // to globally reset paths: @# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go gocui: build - reset - ./forge --gui gocui >/tmp/forge.log 2>&1 + ./forge --gui gocui check-git-clean: @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1) @@ -41,3 +36,11 @@ redomod: GO111MODULE= go mod init GO111MODULE= go mod tidy +list: build + ./forge --list + +list-config: build + ./forge --list-conf + +mine: build + ./forge --mine |
