mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-04 16:44:08 +00:00
yosys-config: redirect to stderr/stdout depending of exit code
This commit is contained in:
parent
58a515d57f
commit
66d7ffb2c5
4
Makefile
4
Makefile
|
@ -1049,7 +1049,7 @@ define DOC_USAGE_STDERR
|
||||||
docs/source/generated/$(1): $(TARGETS) docs/source/generated FORCE
|
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-filterlib
|
||||||
|
|
||||||
# The in-tree ABC (yosys-abc) is only built when ABCEXTERNAL is not set.
|
# The in-tree ABC (yosys-abc) is only built when ABCEXTERNAL is not set.
|
||||||
ifeq ($(ABCEXTERNAL),)
|
ifeq ($(ABCEXTERNAL),)
|
||||||
|
@ -1063,7 +1063,7 @@ 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 > $$@ || rm $$@
|
$(Q) ./$(PROGRAM_PREFIX)$(1) --help > $$@ || rm $$@
|
||||||
endef
|
endef
|
||||||
DOCS_USAGE_STDOUT := yosys yosys-smtbmc yosys-witness
|
DOCS_USAGE_STDOUT := yosys yosys-smtbmc yosys-witness yosys-config
|
||||||
$(foreach usage,$(DOCS_USAGE_STDOUT),$(eval $(call DOC_USAGE_STDOUT,$(usage))))
|
$(foreach usage,$(DOCS_USAGE_STDOUT),$(eval $(call DOC_USAGE_STDOUT,$(usage))))
|
||||||
|
|
||||||
docs/usage: $(addprefix docs/source/generated/,$(DOCS_USAGE_STDOUT) $(DOCS_USAGE_STDERR))
|
docs/usage: $(addprefix docs/source/generated/,$(DOCS_USAGE_STDOUT) $(DOCS_USAGE_STDERR))
|
||||||
|
|
|
@ -36,7 +36,7 @@ help() {
|
||||||
echo ""
|
echo ""
|
||||||
echo " $0 --datdir/simlib.v"
|
echo " $0 --datdir/simlib.v"
|
||||||
echo ""
|
echo ""
|
||||||
} >&2
|
} >&$(( $1 + 1))
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue