Makefile rule pspp.xml: Simplify slightly
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 15 Feb 2015 11:56:29 +0000 (12:56 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 15 Feb 2015 11:56:29 +0000 (12:56 +0100)
doc/automake.mk

index 8c9f660ee347d5bf564852c2a56cf73abc21a678..92bd95dca95aca4159df8e6eb0dd95b85a3e0f56 100644 (file)
@@ -78,8 +78,9 @@ $(srcdir)/doc/pspp.xml: doc/pspp.texi $(doc_pspp_TEXINFOS)
                -e 's/&period;/./g' \
                -e 's%\(<figure [^>]*\)>%\1/>%g' \
         | $(AWK) '/<para>.*<table.*>.*<\/para>/{x=sub("</para>",""); print; s=1;next}/<\/table>/{print; if (s==1) print "</para>"; s=0; next}1' \
-       > $@
-       $(AM_V_at)$(XMLLINT) --output /dev/null $@ || ( $(RM) $@ ; false)
+       > $@,tmp
+       $(AM_V_at)$(XMLLINT) --output /dev/null $@,tmp
+       mv $@,tmp $@
 
 docbookdir = $(docdir)
 dist_docbook_DATA = doc/pspp.xml