2015-01-14 21:36:33 +01:00
|
|
|
.PHONY: all clean debug
|
2014-11-15 19:08:15 +01:00
|
|
|
|
2014-11-16 15:40:04 +01:00
|
|
|
# include config file if it exists
|
|
|
|
-include $(CURDIR)/config.mk
|
|
|
|
|
2014-12-05 21:45:49 +01:00
|
|
|
all: restic
|
2014-11-15 19:08:15 +01:00
|
|
|
|
2015-01-14 21:36:33 +01:00
|
|
|
debug: restic.debug
|
2015-01-14 17:32:37 +01:00
|
|
|
|
2014-12-05 21:45:49 +01:00
|
|
|
restic: $(wildcard *.go) $(wildcard ../../*.go) $(wildcard ../../*/*.go)
|
2015-01-14 21:36:33 +01:00
|
|
|
go build -a
|
2014-11-15 19:08:15 +01:00
|
|
|
|
2015-01-14 17:32:37 +01:00
|
|
|
restic.debug: $(wildcard *.go) $(wildcard ../../*.go) $(wildcard ../../*/*.go)
|
2015-01-14 21:36:33 +01:00
|
|
|
go build -a -tags debug -o restic.debug
|
2014-11-15 19:08:15 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean
|
2015-01-14 17:32:37 +01:00
|
|
|
rm -f restic restic.debug
|