make: add medalla-build and toledo-build targets
This is to simplify building Docker images for different networks. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
6e40ca5e15
commit
ef3cc329bb
22
Makefile
22
Makefile
|
@ -293,28 +293,30 @@ endef
|
||||||
###
|
###
|
||||||
### medalla
|
### medalla
|
||||||
###
|
###
|
||||||
|
medalla-build: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process
|
||||||
|
|
||||||
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
|
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
|
||||||
medalla: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process
|
medalla: | medalla-build
|
||||||
$(call CONNECT_TO_NETWORK,medalla,nimbus_beacon_node_spec_0_12_3)
|
$(call CONNECT_TO_NETWORK,medalla,nimbus_beacon_node_spec_0_12_3)
|
||||||
|
|
||||||
medalla-vc: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process nimbus_validator_client
|
medalla-vc: | medalla-build nimbus_validator_client
|
||||||
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,medalla,nimbus_beacon_node_spec_0_12_3)
|
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,medalla,nimbus_beacon_node_spec_0_12_3)
|
||||||
|
|
||||||
medalla-fast-sync: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process
|
medalla-fast-sync: | medalla-build
|
||||||
$(call CONNECT_TO_NETWORK,medalla,nimbus_beacon_node_spec_0_12_3,FastSync)
|
$(call CONNECT_TO_NETWORK,medalla,nimbus_beacon_node_spec_0_12_3,FastSync)
|
||||||
|
|
||||||
ifneq ($(LOG_LEVEL), TRACE)
|
ifneq ($(LOG_LEVEL), TRACE)
|
||||||
medalla-dev:
|
medalla-dev:
|
||||||
+ "$(MAKE)" LOG_LEVEL=TRACE $@
|
+ "$(MAKE)" LOG_LEVEL=TRACE $@
|
||||||
else
|
else
|
||||||
medalla-dev: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process
|
medalla-dev: | medalla-build
|
||||||
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,medalla,nimbus_beacon_node_spec_0_12_3)
|
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,medalla,nimbus_beacon_node_spec_0_12_3)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
medalla-deposit-data: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process deposit_contract
|
medalla-deposit-data: | medalla-build deposit_contract
|
||||||
$(call MAKE_DEPOSIT_DATA,medalla)
|
$(call MAKE_DEPOSIT_DATA,medalla)
|
||||||
|
|
||||||
medalla-deposit: | nimbus_beacon_node_spec_0_12_3 nimbus_signing_process deposit_contract
|
medalla-deposit: | medalla-build deposit_contract
|
||||||
$(call MAKE_DEPOSIT,medalla)
|
$(call MAKE_DEPOSIT,medalla)
|
||||||
|
|
||||||
clean-medalla:
|
clean-medalla:
|
||||||
|
@ -323,18 +325,20 @@ clean-medalla:
|
||||||
###
|
###
|
||||||
### toledo
|
### toledo
|
||||||
###
|
###
|
||||||
|
toledo-build: | nimbus_beacon_node nimbus_signing_process
|
||||||
|
|
||||||
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
|
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
|
||||||
toledo: | nimbus_beacon_node nimbus_signing_process
|
toledo: | toledo-build
|
||||||
$(call CONNECT_TO_NETWORK,toledo,nimbus_beacon_node)
|
$(call CONNECT_TO_NETWORK,toledo,nimbus_beacon_node)
|
||||||
|
|
||||||
toledo-vc: | nimbus_beacon_node nimbus_signing_process nimbus_validator_client
|
toledo-vc: | toledo-build nimbus_validator_client
|
||||||
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,toledo,nimbus_beacon_node)
|
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,toledo,nimbus_beacon_node)
|
||||||
|
|
||||||
ifneq ($(LOG_LEVEL), TRACE)
|
ifneq ($(LOG_LEVEL), TRACE)
|
||||||
toledo-dev:
|
toledo-dev:
|
||||||
+ "$(MAKE)" LOG_LEVEL=TRACE $@
|
+ "$(MAKE)" LOG_LEVEL=TRACE $@
|
||||||
else
|
else
|
||||||
toledo-dev: | nimbus_beacon_node nimbus_signing_process
|
toledo-dev: | toledo-build
|
||||||
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,toledo,nimbus_beacon_node)
|
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,toledo,nimbus_beacon_node)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue