X-Git-Url: https://git.ladys.computer/Fortune/blobdiff_plain/67849dd8598e05ce4095f9ff5df6ace13991659f..refs/heads/current:/GNUmakefile?ds=inline diff --git a/GNUmakefile b/GNUmakefile index c583687..188e0ee 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,5 +14,8 @@ lint : $(foreach xml,$(xmls),lint][$(xml)) ; $(foreach xml,$(xmls),lint][$(xml)) : lint][% : @xmllint --valid --noout '$*' + @$(if $(findstring /fortunes/,$*),if ! xmllint --xpath '//*[local-name()="seg" and namespace-uri()="http://www.tei-c.org/ns/1.0" and @type="callout"]' '$*' >/dev/null 2>/dev/null; then printf '%s\n' 'No callout in file <$*>'; false; fi; if xmllint --xpath '//*[local-name()="seg" and namespace-uri()="http://www.tei-c.org/ns/1.0" and @type="callout"][2]' '$*' >/dev/null 2>/dev/null; then printf '%s\n' 'Multiple callouts in file <$*>'; false; fi,:) -.PHONY : lint $(foreach xml,$(xmls),lint][$(xml)) +.IGNORE : $(foreach xml,$(xmls),lint][$(xml)) ; + +.PHONY : lint $(foreach xml,$(xmls),lint][$(xml)) ;