mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-31 18:53:22 +00:00
build: add link flags -s and -w to build
This commit is contained in:
parent
f31c1296ae
commit
aeac0ccce0
6
Makefile
6
Makefile
@ -4,13 +4,13 @@ BINDIR ?= $(PREFIX)/bin
|
||||
LIBDIR ?= $(PREFIX)/share/hilbish
|
||||
|
||||
build:
|
||||
@go build
|
||||
@go build -ldflags "-s -w"
|
||||
|
||||
dev:
|
||||
@go build -ldflags "-X main.version=$(shell git describe --tags)"
|
||||
@go build -ldflags "-s -w -X main.version=$(shell git describe --tags)"
|
||||
|
||||
hilbiline:
|
||||
@go build -ldflags "-X main.version=$(shell git describe --tags)+hilbiline" -tags hilbiline
|
||||
@go build -ldflags "-s -w -X main.version=$(shell git describe --tags)+hilbiline" -tags hilbiline
|
||||
|
||||
install:
|
||||
@install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v hilbish "$(DESTDIR)$(BINDIR)/hilbish"
|
||||
|
Loading…
x
Reference in New Issue
Block a user