restic/cmd/khepri/Makefile
Alexander Neumann 7006e13ca9 Add dependencies
2014-11-17 23:52:31 +01:00

18 lines
332 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 $(wildcard ../../*.go) $(wildcard ../../*/*.go)
go build $(TAGS) -ldflags "$(LDFLAGS)"
debug: TAGS=-tags debug
debug: khepri
clean:
go clean