mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
19 lines
284 B
Makefile
19 lines
284 B
Makefile
|
# try to get version from git
|
||
|
VERSION = $(shell ./version.sh)
|
||
|
VERSION ?= "unknown version"
|
||
|
LDFLAGS = -X main.version $(VERSION)
|
||
|
TAGS =
|
||
|
|
||
|
.PHONY: all clean debug
|
||
|
|
||
|
all: khepri
|
||
|
|
||
|
khepri: *.go
|
||
|
go build $(TAGS) -ldflags "$(LDFLAGS)"
|
||
|
|
||
|
debug: TAGS=-tags debug
|
||
|
debug: khepri
|
||
|
|
||
|
clean:
|
||
|
go clean
|