2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

chore: add build-dev to Makefile

this builds hilbish with a version including the latest git commit.
This commit is contained in:
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

View File

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