mirror of
https://github.com/octoleo/restic.git
synced 2024-10-31 19:02:32 +00:00
34 lines
598 B
Makefile
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
|