From da6a4aa70f41ac8e445000fb5a7c2effab20f26a Mon Sep 17 00:00:00 2001 From: sammy <38820196+TorchedSammy@users.noreply.github.com> Date: Fri, 14 May 2021 06:22:20 -0400 Subject: [PATCH] chore: add build-dev to Makefile this builds hilbish with a version including the latest git commit. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f336963..eb8aeab 100644 --- a/Makefile +++ b/Makefile @@ -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