mirror of
https://gitea.intern.drachenfels.de/ruben/goget.git
synced 2026-02-08 12:48:01 +00:00
Initial implementation.
This commit is contained in:
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
BUILD_HASH := $(shell git describe --always --tags --long)
|
||||
LDFLAGS := "-X main.version=${BUILD_HASH} -s -w"
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
go fmt ./...
|
||||
go install -ldflags ${LDFLAGS} ./...
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go fmt ./...
|
||||
go build -ldflags ${LDFLAGS} ./...
|
||||
Reference in New Issue
Block a user