2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00
restic/Makefile
2015-01-14 17:43:41 +01:00

34 lines
598 B
Makefile

.PHONY: clean all test release debug
GOFLAGS=
#GOFLAGS+=-race
all: release test
release:
for dir in cmd/* ; do \
test -f "$$dir/Makefile" && \
(GOFLAGS="$(GOFLAGS)" make -C "$$dir") \
done
debug:
for dir in cmd/* ; do \
test -f "$$dir/Makefile" && \
(GOFLAGS="$(GOFLAGS)" make -C "$$dir" debug) \
done
test: release debug
go test -v ./...
test/run.sh cmd/restic:cmd/dirdiff
test-%: test/test-%.sh release debug
echo $*
test/run.sh cmd/restic:cmd/dirdiff "test/$@.sh"
clean:
go clean
for dir in cmd/* ; do \
test -f "$$dir/Makefile" && \
(make -C "$$dir" clean) \
done