@@ -4,7 +4,7 @@ DATE=$(shell date -u -Iseconds)
44GOFLAGS=-ldflags ="-X github.com/storacha/piri/pkg/build.version=$(VERSION ) -X github.com/storacha/piri/pkg/build.Commit=$(COMMIT ) -X github.com/storacha/piri/pkg/build.Date=$(DATE ) -X github.com/storacha/piri/pkg/build.BuiltBy=make"
55TAGS? =
66
7- .PHONY : all build install test clean calibnet mockgen check-docs-links
7+ .PHONY : all build test clean
88
99all : build
1010
@@ -20,44 +20,8 @@ piri: FORCE
2020
2121FORCE :
2222
23- install :
24- go install ./cmd/storage
25-
2623test :
2724 go test ./...
2825
2926clean :
30- rm -f ./piri
31-
32- mockgen :
33- mockgen -source=./pkg/pdp/aggregator/interface.go -destination=./internal/mocks/aggregator.go -package=mocks
34- mockgen -source=./pkg/pdp/types/api.go -destination=./internal/mocks/pdp_api.go -package=mocks
35- mockgen -source=./internal/ipldstore/ipldstore.go -destination=./internal/mocks/ipldstore.go -package=mocks
36- mockgen -source=./pkg/pdp/aggregator/steps.go -destination=./internal/mocks/steps.go -package=mocks
37- mockgen -destination=./internal/mocks/sender_eth_client.go -package=mocks github.com/storacha/piri/pkg/pdp/tasks SenderETHClient
38- mockgen -destination=./internal/mocks/message_watcher_eth_client.go -package=mocks github.com/storacha/piri/pkg/pdp/tasks MessageWatcherEthClient
39- mockgen -destination=./internal/mocks/contract_backend.go -package=mocks github.com/ethereum/go-ethereum/accounts/abi/bind ContractBackend
40- mockgen -source=./pkg/pdp/smartcontracts/contract.go -destination=./pkg/pdp/smartcontracts/mocks/pdp.go -package=mocks
41-
42- # Contract generation targets
43- .PHONY : generate-contracts clean-contracts
44-
45- generate-contracts :
46- cd pkg/pdp/smartcontracts && ./generate.sh
47-
48- clean-contracts :
49- rm -rf pkg/pdp/smartcontracts/abis
50- rm -rf pkg/pdp/smartcontracts/bindings
51- rm -f pkg/pdp/smartcontracts/mocks/* .go
52-
53- mockgen-contracts : generate-contracts
54- mockgen -source=./pkg/pdp/smartcontracts/contract.go -destination=./pkg/pdp/smartcontracts/mocks/pdp.go -package=mocks
55-
56-
57- # special target that sets the calibnet tag and invokes build
58- calibnet : TAGS=-tags calibnet
59- calibnet : build
60-
61- # Check for broken links in documentation
62- check-docs-links :
63- @./scripts/check-docs-links.sh
27+ rm -f ./piri
0 commit comments