chore: add build-dev to Makefile

this builds hilbish with a version including the latest git commit.
pull/59/head
sammy 2021-05-14 06:22:20 -04:00
parent 69c0ccc807
commit da6a4aa70f
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,9 @@ LIBDIR ?= $(PREFIX)/share/hilbish
build: build:
@go build @go build
build-dev:
@go build -ldflags "-X main.version=$(git describe --tags)"
install: install:
@install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v hilbish "$(DESTDIR)$(BINDIR)/hilbish" @install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v hilbish "$(DESTDIR)$(BINDIR)/hilbish"
@mkdir -p "$(DESTDIR)$(LIBDIR)" @mkdir -p "$(DESTDIR)$(LIBDIR)"
@ -25,4 +28,4 @@ clean:
all: build install all: build install
.PHONY: install uninstall build clean .PHONY: install uninstall build build-dev clean