| 1 | all: install |
| 2 | |
| 3 | REBUILD: |
| 4 | @touch debug*.go |
| 5 | |
| 6 | dependencies: |
| 7 | go get -u github.com/dvyukov/go-fuzz/go-fuzz |
| 8 | go get -u github.com/dvyukov/go-fuzz/go-fuzz-build |
| 9 | go get -u github.com/NebulousLabs/fastrand |
| 10 | go get -u github.com/NebulousLabs/errors |
| 11 | |
| 12 | install: REBUILD |
| 13 | go install |
| 14 | |
| 15 | test: REBUILD |
| 16 | go test -v -tags='debug' -timeout=600s |
| 17 | test-short: REBUILD |
| 18 | go test -short -v -tags='debug' -timeout=6s |
| 19 | |
| 20 | cover: REBUILD |
| 21 | go test -v -tags='debug' -cover -coverprofile=cover.out |
| 22 | go tool cover -html=cover.out -o=cover.html |
| 23 | rm cover.out |
| 24 | |
| 25 | fuzz: REBUILD |
| 26 | go install -tags='debug gofuzz' |
| 27 | go-fuzz-build github.com/NebulousLabs/merkletree |
| 28 | go-fuzz -bin=./merkletree-fuzz.zip -workdir=fuzz |
| 29 | |
| 30 | .PHONY: all REBUILD dependencies install test test-short cover fuzz benchmark |