mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 12:08:19 +00:00
Merge pull request #4940 from DanielG/fix-help-rebuild
mk: Avoid broken rebuild if program --help fails
This commit is contained in:
commit
8bde6ac17c
6
Makefile
6
Makefile
|
@ -1040,7 +1040,7 @@ docs/source/generated:
|
||||||
|
|
||||||
# some commands return an error and print the usage text to stderr
|
# some commands return an error and print the usage text to stderr
|
||||||
define DOC_USAGE_STDERR
|
define DOC_USAGE_STDERR
|
||||||
docs/source/generated/$(1): $(TARGETS) docs/source/generated
|
docs/source/generated/$(1): $(TARGETS) docs/source/generated FORCE
|
||||||
-$(Q) ./$(PROGRAM_PREFIX)$(1) --help 2> $$@
|
-$(Q) ./$(PROGRAM_PREFIX)$(1) --help 2> $$@
|
||||||
endef
|
endef
|
||||||
DOCS_USAGE_STDERR := yosys-config yosys-filterlib
|
DOCS_USAGE_STDERR := yosys-config yosys-filterlib
|
||||||
|
@ -1055,7 +1055,7 @@ $(foreach usage,$(DOCS_USAGE_STDERR),$(eval $(call DOC_USAGE_STDERR,$(usage))))
|
||||||
# others print to stdout
|
# others print to stdout
|
||||||
define DOC_USAGE_STDOUT
|
define DOC_USAGE_STDOUT
|
||||||
docs/source/generated/$(1): $(TARGETS) docs/source/generated
|
docs/source/generated/$(1): $(TARGETS) docs/source/generated
|
||||||
$(Q) ./$(PROGRAM_PREFIX)$(1) --help > $$@
|
$(Q) ./$(PROGRAM_PREFIX)$(1) --help > $$@ || rm $$@
|
||||||
endef
|
endef
|
||||||
DOCS_USAGE_STDOUT := yosys yosys-smtbmc yosys-witness
|
DOCS_USAGE_STDOUT := yosys yosys-smtbmc yosys-witness
|
||||||
$(foreach usage,$(DOCS_USAGE_STDOUT),$(eval $(call DOC_USAGE_STDOUT,$(usage))))
|
$(foreach usage,$(DOCS_USAGE_STDOUT),$(eval $(call DOC_USAGE_STDOUT,$(usage))))
|
||||||
|
@ -1192,5 +1192,7 @@ echo-cxx:
|
||||||
-include kernel/*.d
|
-include kernel/*.d
|
||||||
-include techlibs/*/*.d
|
-include techlibs/*/*.d
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
.PHONY: all top-all abc test install install-abc docs clean mrproper qtcreator coverage vcxsrc
|
.PHONY: all top-all abc test install install-abc docs clean mrproper qtcreator coverage vcxsrc
|
||||||
.PHONY: config-clean config-clang config-gcc config-gcc-static config-gprof config-sudo
|
.PHONY: config-clean config-clang config-gcc config-gcc-static config-gprof config-sudo
|
||||||
|
|
Loading…
Reference in a new issue