Content-Length: 261083 | pFad | http://github.com/postgrespro/postgres_cluster/commit/bb874e30fbf9e85bdb117bad34865a5fae29dbf6

25 Make INSTALL makefile rule more robust · postgrespro/postgres_cluster@bb874e3 · GitHub
Skip to content

Commit bb874e3

Browse files
committed
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: Tom Lane <tgl@sss.pgh.pa.us>
1 parent 7291733 commit bb874e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ ICONV = iconv
103103
PANDOC = pandoc
104104

105105
INSTALL: % : %.html
106-
$(PANDOC) $< -t plain | $(ICONV) -f utf8 -t us-ascii//TRANSLIT > $@
106+
$(PANDOC) -t plain -o $@.tmp $<
107+
$(ICONV) -f utf8 -t us-ascii//TRANSLIT $@.tmp > $@
108+
rm $@.tmp
107109

108110
INSTALL.html: %.html : stylesheet-text.xsl %.xml
109111
$(XMLLINT) --noout --valid $*.xml

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/bb874e30fbf9e85bdb117bad34865a5fae29dbf6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy