Commit bb874e30 authored by Peter Eisentraut's avatar Peter Eisentraut

Make INSTALL makefile rule more robust

With the previous rule, if pandoc was missing, a zero-length output
file would be created without an error from make.  To improve that,
write the rule as two separate commands without a pipe.
Reported-by: default avatarTom Lane <tgl@sss.pgh.pa.us>
parent 7291733a
......@@ -103,7 +103,9 @@ ICONV = iconv
PANDOC = pandoc
INSTALL: % : %.html
$(PANDOC) $< -t plain | $(ICONV) -f utf8 -t us-ascii//TRANSLIT > $@
$(PANDOC) -t plain -o $@.tmp $<
$(ICONV) -f utf8 -t us-ascii//TRANSLIT $@.tmp > $@
rm $@.tmp
INSTALL.html: %.html : stylesheet-text.xsl %.xml
$(XMLLINT) --noout --valid $*.xml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment