Fix instr when cloning from scratch (#621)

* Fix build instruction (make update deps is not enough on first install)

* use underline instead of bold

* Alternative fix

* Makefile: fix the default target on fresh clone

* fix ANSI escape code bleeding into my shell prompt
This commit is contained in:
Mamy Ratsimbazafy 2019-12-03 19:52:54 +01:00 committed by GitHub
parent 2ce2cbf869
commit 52cdb73e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -19,7 +19,12 @@ TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(TOOLS))
.PHONY: all build-system-checks deps update p2pd test $(TOOLS) clean_eth2_network_simulation_files eth2_network_simulation clean-testnet0 testnet0 clean-testnet1 testnet1 clean .PHONY: all build-system-checks deps update p2pd test $(TOOLS) clean_eth2_network_simulation_files eth2_network_simulation clean-testnet0 testnet0 clean-testnet1 testnet1 clean
ifeq ($(NIM_PARAMS),)
# "variables.mk" was not included. We can only execute one target in this state.
all: | build-system-checks
else
all: | build-system-checks $(TOOLS) all: | build-system-checks $(TOOLS)
endif
# must be included after the default target # must be included after the default target
-include $(BUILD_SYSTEM_DIR)/makefiles/targets.mk -include $(BUILD_SYSTEM_DIR)/makefiles/targets.mk
@ -29,8 +34,8 @@ build-system-checks:
@[[ -e "$(BUILD_SYSTEM_DIR)/makefiles" ]] || { \ @[[ -e "$(BUILD_SYSTEM_DIR)/makefiles" ]] || { \
echo -e "'$(BUILD_SYSTEM_DIR)/makefiles' not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \ echo -e "'$(BUILD_SYSTEM_DIR)/makefiles' not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \
$(GIT_SUBMODULE_UPDATE); \ $(GIT_SUBMODULE_UPDATE); \
echo -e "\nYou can now run '$(MAKE)' again."; \ echo -e "\n✔ Successfully fetched all required internal dependencies."; \
exit 1; \ echo -e " You should now \e[4mre-run '$(MAKE)' to build Nimbus\e[0m\n"; \
} }
deps: | deps-common beacon_chain.nims p2pd deps: | deps-common beacon_chain.nims p2pd

View File

@ -98,8 +98,8 @@ Once the [prerequisites](#prerequisites) are installed you can connect to testne
git clone https://github.com/status-im/nim-beacon-chain git clone https://github.com/status-im/nim-beacon-chain
cd nim-beacon-chain cd nim-beacon-chain
make # This invocation will bootstrap the build system with additional Makefiles make # This invocation will bootstrap the build system with additional Makefiles
make update deps # This will build Nim and all other dependencies make testnet0 # This will build Nimbus and all other dependencies
./connect-to-testnet testnet0 # and connect you to testnet0
``` ```
The testnets are restarted once per week, usually on Monday evenings (UTC)) and integrate the changes for the past week. The testnets are restarted once per week, usually on Monday evenings (UTC)) and integrate the changes for the past week.