Give some build feedback
This commit is contained in:
parent
f3531af469
commit
e853273df0
3
Makefile
3
Makefile
@ -7,18 +7,21 @@ GIT := $(shell git rev-parse --short HEAD)
|
||||
DIRTY := $(shell git diff-index --quiet HEAD 2> /dev/null > /dev/null || echo "-dirty")
|
||||
|
||||
bin/hw: cmd/hw/main.go bin
|
||||
@echo hw
|
||||
@go build -ldflags \
|
||||
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
||||
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
||||
-v -o bin/hw ./cmd/hw
|
||||
|
||||
bin/hwc: cmd/hwc/main.go bin
|
||||
@echo hwc
|
||||
@go build -ldflags \
|
||||
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
||||
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
||||
-v -o bin/hwc ./cmd/hwc
|
||||
|
||||
bin/hwl: cmd/hwl/main.go bin
|
||||
@echo hwl
|
||||
@go build -ldflags \
|
||||
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
||||
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
||||
|
Loading…
Reference in New Issue
Block a user