]> Lady’s Gitweb - Fortune/blobdiff - GNUmakefile
Add PatchesGender fortunes
[Fortune] / GNUmakefile
index c583687ced9a0163f3c49fe1fecac38021a352a3..188e0eee3f070872cb2d87a62b7ef25f6461f22e 100644 (file)
@@ -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)) ;
This page took 0.022708 seconds and 4 git commands to generate.