forked from ethereum/execution-apis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 650 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: build test fill tools lint
SPECFLAGS := -schemas 'src/schemas' \
-schemas 'src/engine/openrpc/schemas' \
-methods 'src/eth' \
-methods 'src/debug' \
-methods 'src/txpool' \
-methods 'src/engine/openrpc/methods' \
-methods 'src/testing' \
-error-groups 'src/error-groups'
build: tools
./tools/specgen -o refs-openrpc.json $(SPECFLAGS)
./tools/specgen -o openrpc.json -deref $(SPECFLAGS)
test: tools
./tools/speccheck -v
lint:
@[ -f refs-openrpc.json ] || $(MAKE) build >/dev/null
cd tools && go tool openrpc-linter lint ../refs-openrpc.json -r ../openrpc-lint.yml
fill:
$(MAKE) -C tools fill
tools:
$(MAKE) -C tools build