1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge pull request #391 from wtfutil/WTF-378-makefile-improvement

Display message if wtf cannot be found after installation. Closes #378
This commit is contained in:
Chris Cummer
2019-02-17 12:33:58 -08:00
committed by GitHub

View File

@@ -23,9 +23,9 @@ contrib_check:
npx all-contributors-cli check
install:
go clean
go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)"
which wtf
@go clean
@go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)"
@which wtf || echo "Could not find wtf in PATH" && exit 0
lint:
structcheck ./...