X-Git-Url: https://git.ladys.computer/Fortune/blobdiff_plain/67849dd8598e05ce4095f9ff5df6ace13991659f..122e15fc0047ef832eab4ce5f7f1d241a8d003fb:/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)) ;