restic/Makefile

34 lines
598 B
Makefile
Raw Normal View History

.PHONY: clean all test release debug
2014-08-05 21:13:19 +00:00
GOFLAGS=
#GOFLAGS+=-race
2014-11-24 21:19:48 +00:00
all: release test
release:
for dir in cmd/* ; do \
test -f "$$dir/Makefile" && \
(GOFLAGS="$(GOFLAGS)" make -C "$$dir") \
done
debug:
2014-08-06 18:09:41 +00:00
for dir in cmd/* ; do \
test -f "$$dir/Makefile" && \
(GOFLAGS="$(GOFLAGS)" make -C "$$dir" debug) \
2014-08-06 18:09:41 +00:00
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"
2014-08-05 21:13:19 +00:00
clean:
go clean
2014-08-06 18:09:41 +00:00
for dir in cmd/* ; do \
test -f "$$dir/Makefile" && \
(make -C "$$dir" clean) \
2014-08-06 18:09:41 +00:00
done