mirror of https://github.com/Hilbis/Hilbish
chore: add build-dev to Makefile
this builds hilbish with a version including the latest git commit.pull/59/head
parent
69c0ccc807
commit
da6a4aa70f
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue