initial
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Infer VERSION from the most recent tag; if none, use short commit hash.
|
||||
VERSION ?= $(shell git describe --tags --abbrev=0 2>/dev/null || \
|
||||
git rev-parse --short HEAD)
|
||||
|
||||
GOLDFLAGS += -s -w \
|
||||
-X 'git.eeqj.de/sneak/sysinfo/internal/sysinfo.Version=$(VERSION)'
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
GOFLAGS=-ldflags="$(GOLDFLAGS)" go build ./cmd/sysinfo
|
||||
|
||||
install:
|
||||
GOFLAGS=-ldflags="$(GOLDFLAGS)" go install ./cmd/sysinfo
|
||||
|
||||
.PHONY: all build install
|
||||
Reference in New Issue
Block a user