2015-06-24 19:57:27 +02:00
|
|
|
.PHONY: all clean test
|
2015-05-11 21:09:32 +02:00
|
|
|
|
2015-05-14 11:11:30 +02:00
|
|
|
SOURCE=$(wildcard *.go) $(wildcard */*.go) $(wildcard */*/*.go)
|
|
|
|
|
2015-05-10 22:43:42 +02:00
|
|
|
export GOPATH GOX_OS
|
|
|
|
|
|
|
|
all: restic
|
|
|
|
|
2015-06-24 19:57:27 +02:00
|
|
|
restic: $(SOURCE)
|
|
|
|
go run build.go
|
2015-05-10 22:43:42 +02:00
|
|
|
|
2015-06-24 19:57:27 +02:00
|
|
|
restic.debug: $(SOURCE)
|
|
|
|
go run build.go -tags debug
|
2014-08-05 23:13:19 +02:00
|
|
|
|
|
|
|
clean:
|
2015-06-24 19:57:27 +02:00
|
|
|
rm -rf restic restic.debug
|
2015-05-11 21:10:36 +02:00
|
|
|
|
2015-06-24 19:57:27 +02:00
|
|
|
test: $(SOURCE)
|
|
|
|
go run run_tests.go /dev/null
|
2015-05-11 21:10:36 +02:00
|
|
|
|
2015-06-24 19:57:27 +02:00
|
|
|
all.cov: $(SOURCE)
|
|
|
|
go run run_tests.go all.cov
|