2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-03 02:18:23 +00:00
restic/cmd/khepri/Makefile

22 lines
413 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-23 14:15:11 +00:00
khepri: $(wildcard *.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