]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: don't repeatly validate NEWS.atom
authorEric Wong <e@80x24.org>
Fri, 29 Nov 2019 10:14:12 +0000 (10:14 +0000)
committerEric Wong <e@80x24.org>
Wed, 11 Dec 2019 08:10:31 +0000 (08:10 +0000)
We can create a stamp to avoid rerunning the check unless
NEWS.atom changes (and it will, soon, I hope :>).

.gitignore
Documentation/include.mk

index 9eb97751cf1d090f5688b5120f5f51d81e35e719..bdb8cf15ec320e0432c28477fb3c8b7b0b6908b5 100644 (file)
@@ -15,6 +15,7 @@
 *.html
 *.gz
 .*.cols
+.*.check
 /NEWS.html
 /NEWS.atom
 /NEWS
index 651fdf30922b1f513b7c9de3afa17847af8db3ae..624f07f42e4330c3d7c6f6d227cfc14e43a88723 100644 (file)
@@ -134,11 +134,12 @@ NEWS NEWS.atom NEWS.html : Documentation/include.mk
        $(PERL) -I lib -w Documentation/mknews.perl $@ $(RELEASES)
 
 # check for internal API changes:
-check :: NEWS check-NEWS.atom NEWS.html
+check :: NEWS .NEWS.atom.check NEWS.html
 
-check-NEWS.atom: NEWS.atom
+.NEWS.atom.check: NEWS.atom
        $(XMLSTARLET) val NEWS.atom || \
                { e=$$?; test $$e -eq 0 || test $$e -eq 127; }
+       >$@
 
 Documentation/%.html: Documentation/%.txt
        $(txt2pre)