mirror of
https://github.com/octoleo/restic.git
synced 2024-11-24 13:47:42 +00:00
34 lines
593 B
Makefile
34 lines
593 B
Makefile
.PHONY: clean all test release debug
|
|
|
|
GOFLAGS=
|
|
#GOFLAGS+=-race
|
|
|
|
all: release
|
|
|
|
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
|