-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathMakefile
26 lines (21 loc) · 1.19 KB
/
Makefile
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
COMPONENTS = mithril-aggregator mithril-client mithril-client-cli mithril-client-wasm \
mithril-common mithril-relay mithril-signer mithril-stm \
internal/mithril-build-script internal/mithril-cli-helper internal/mithril-doc \
internal/mithril-doc-derive internal/mithril-metric internal/mithril-persistence \
internal/mithril-resource-pool internal/signed-entity/mithril-signed-entity-lock \
internal/signed-entity/mithril-signed-entity-preloader \
demo/protocol-demo \
mithril-test-lab/mithril-aggregator-fake mithril-test-lab/mithril-end-to-end
GOALS := $(or $(MAKECMDGOALS),all)
NON_COMPONENT_GOALS := check-format format
.PHONY: $(GOALS) $(COMPONENTS) $(NON_COMPONENT_GOALS)
$(filter-out $(NON_COMPONENT_GOALS),$(GOALS)): $(COMPONENTS)
$(COMPONENTS):
$(MAKE) -C $@ $(MAKECMDGOALS)
check-format:
@echo 'Note: Rust is not checked by this recipe, use `make check`'
@which prettier >/dev/null || echo 'It seems 'prettier' is not installed or not in the path. see https://prettier.io/docs/en/install';
prettier --check .
format:
@which prettier >/dev/null || echo 'It seems 'prettier' is not installed or not in the path. see https://prettier.io/docs/en/install';
prettier --write .