2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-10 23:31:09 +00:00
restic/cmd/khepri/Makefile

22 lines
401 B
Makefile
Raw Normal View History

# try to get version from git
VERSION = $(shell ./version.sh)
VERSION ?= "unknown version"
LDFLAGS = -X main.version $(VERSION)
TAGS =
.PHONY: all clean debug
2014-11-16 14:40:04 +00:00
# include config file if it exists
-include $(CURDIR)/config.mk
all: khepri
2014-11-16 14:30:37 +00:00
khepri: *.go $(wildcard ../../*.go) $(wildcard ../../*/*.go)
go build $(TAGS) -ldflags "$(LDFLAGS)"
2014-11-16 14:40:04 +00:00
debug: TAGS=-tags debug_cmd
debug: khepri
clean:
go clean