mirror of
https://github.com/restic/restic.git
synced 2024-09-10 13:20:53 +02: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
|