@@ -34,7 +34,7 @@ MARKDOWN_FILES = $(wildcard $(SPEC_DIR)/*/*.md) \
3434 $(wildcard $(SPEC_DIR ) /_features/* /* /* .md) \
3535 $(wildcard $(SSZ_DIR ) /* .md)
3636
37- ALL_EXECUTABLE_SPEC_NAMES = phase0 altair bellatrix capella deneb electra whisk eip6800 eip7732
37+ ALL_EXECUTABLE_SPEC_NAMES = phase0 altair bellatrix capella deneb electra whisk eip6800 eip7594 eip7732
3838# The parameters for commands. Use `foreach` to avoid listing specs again.
3939COVERAGE_SCOPE := $(foreach S,$(ALL_EXECUTABLE_SPEC_NAMES ) , --cov=eth2spec.$S.$(TEST_PRESET_TYPE ) )
4040PYLINT_SCOPE := $(foreach S,$(ALL_EXECUTABLE_SPEC_NAMES ) , ./eth2spec/$S)
@@ -105,7 +105,7 @@ generate_tests: $(GENERATOR_TARGETS)
105105
106106# "make pyspec" to create the pyspec for all phases.
107107pyspec :
108- python3 -m venv venv; . venv/bin/activate; python3 setup.py pyspecdev
108+ @ python3 -m venv venv; . venv/bin/activate; python3 setup.py pyspecdev
109109
110110# check the setup tool requirements
111111preinstallation :
@@ -141,13 +141,21 @@ endif
141141open_cov :
142142 (( open "$(COV_INDEX_FILE)" || xdg- open "$(COV_INDEX_FILE)") &> / dev/ null) &
143143
144+ # Check all files and error if any ToC were modified.
144145check_toc : $(MARKDOWN_FILES:=.toc )
146+ @[ " $$ (find . -name '*.md.tmp' -print -quit)" ] && exit 1 || exit 0
145147
148+ # Generate ToC sections & save copy of original if modified.
146149% .toc :
147- cp $* $* .tmp && \
148- doctoc $* && \
149- diff -q $* $* .tmp && \
150- rm $* .tmp
150+ @cp $* $* .tmp; \
151+ doctoc $* > /dev/null; \
152+ if diff -q $* $* .tmp > /dev/null; then \
153+ echo " Good $* " ; \
154+ rm $* .tmp; \
155+ else \
156+ echo " \033[1;33m Bad $* \033[0m" ; \
157+ echo " \033[1;34m See $* .tmp\033[0m" ; \
158+ fi
151159
152160codespell :
153161 codespell . --skip " ./.git,./venv,$( PY_SPEC_DIR) /.mypy_cache" -I .codespell-whitelist
0 commit comments