2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-06 11:00:48 +00:00
restic/cmd/restic/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
2014-12-05 20:45:49 +00:00
all: restic
2014-12-05 20:45:49 +00:00
restic: $(wildcard *.go) $(wildcard ../../*.go) $(wildcard ../../*/*.go)
go build $(TAGS) -ldflags "$(LDFLAGS)"
2014-11-16 14:40:04 +00:00
debug: TAGS=-tags debug_cmd
2014-12-05 20:45:49 +00:00
debug: restic
clean:
go clean