Skip to content

Commit a3d0cd0

Browse files
committed
makefile: Permit check-spec-links job on SDK subsets
1 parent 743bfc0 commit a3d0cd0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

specification/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ CHECK_SPEC_LINKS_SCRIPT = $(CURDIR)/scripts/check_spec_links.py --ignore_count=0
446446
# Would like those in the logs, but not in the count for build-breaking.
447447

448448
check-spec-links:
449-
$(QUIET)$(CHECK_MARKUP_SCRIPT) -Werror
450-
$(QUIET)$(PYTHON) $(CHECK_SPEC_LINKS_SCRIPT)
451-
$(QUIET)env FAIL_IF_COULD_NOT_VALIDATE=false ./checkXml.sh
449+
$(QUIET)if [ -f $(CHECK_MARKUP_SCRIPT) ] && [ -f $(SPECSRC) ]; then $(CHECK_MARKUP_SCRIPT) -Werror; fi
450+
$(QUIET)if [ -f $(SPECSRC) ]; then $(PYTHON) $(CHECK_SPEC_LINKS_SCRIPT); fi
451+
$(QUIET)if [ -f checkXml.sh ] && [ -f registry/registry.rnc ]; then env FAIL_IF_COULD_NOT_VALIDATE=false ./checkXml.sh; fi
452452
$(QUIET)$(PYTHON) $(SCRIPTS)/xml_consistency.py
453453

454454
.PHONY: check-spec-links

0 commit comments

Comments
 (0)