]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/include.mk
doc: check-NEWS.atom fails gracefully on FreeBSD make(1)
[public-inbox.git] / Documentation / include.mk
index 04c6b35878b5b4cd47969b3a732b4d26858dcbc1..45e085738ea6c01708a628f796d805e5c3a4f460 100644 (file)
@@ -8,7 +8,10 @@ all::
 # Maybe it's not worth it to support non-GNU make, though...
 RSYNC = rsync
 RSYNC_DEST = public-inbox.org:/srv/public-inbox/
+AWK = awk
 MAN = man
+
+# this is "xml" on FreeBSD and maybe some other distros:
 XMLSTARLET = xmlstarlet
 
 # same as pod2text
@@ -109,14 +112,15 @@ RELEASES =
 RELEASES += v1.1.0-pre1
 RELEASES += v1.0.0
 
-NEWS NEWS.atom NEWS.html : Documentation/RelNotes
+NEWS NEWS.atom NEWS.html :
        $(PERL) -I lib -w Documentation/mknews.perl $@ $(RELEASES)
 
 # check for internal API changes:
 check :: NEWS check-NEWS.atom NEWS.html
 
 check-NEWS.atom: NEWS.atom
-       $(XMLSTARLET) val $<; e=$$?; test $$e -eq 0 || test $$e -eq 127
+       $(XMLSTARLET) val NEWS.atom || \
+               { e=$$?; test $$e -eq 0 || test $$e -eq 127; }
 
 Documentation/%.html: Documentation/%.txt
        $(txt2pre)