doc/automake.mk: Simplify conversion rules
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 1 Nov 2020 11:19:32 +0000 (12:19 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 1 Nov 2020 16:29:25 +0000 (17:29 +0100)
doc/automake.mk

index c380d12ec3887f3ac23002cab97ec3229b3a8885..4e60b98ca51e4077c05a80c0a92a2cddb6454e74 100644 (file)
@@ -192,13 +192,11 @@ $(EXAMPLE_TXTS) $(EXAMPLE_HTML): $(pspp_output)
 .spv.txt:
        $(AM_V_GEN)utilities/pspp-output convert $< $@
 .spv.html:
-       $(AM_V_GEN)utilities/pspp-output convert $< - -O format=html -O bare=true > $@.tmp
-       $(AM_V_at)mv $@.tmp $@
+       $(AM_V_GEN)utilities/pspp-output convert $< $@ -O format=html -O bare=true
 
 # Convert a text file into a Texinfo file.
 .txt.texi:
-       $(AM_V_GEN)sed 's/@/@@/g' < $< > $@.tmp
-       $(AM_V_at)mv $@.tmp $@
+       $(AM_V_GEN)$(SED) -e 's/@/@@/g' $< > $@
 
 AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) --css-ref=pspp-manual.css
 install-html-local: html-local