Fix dbtoepub output file name
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Feb 2019 14:39:37 +0000 (15:39 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Feb 2019 14:43:28 +0000 (15:43 +0100)
In previous releases, the input file of dbtoepub was postgres.xml, and
dbtoepub knows to derive the output file name postgres.epub from that
automatically.  But now the intput file is postgres.sgml (since
postgres.sgml is itself an XML file and we no longer need the
intermediate postgres.xml file), but dbtoepub doesn't know how to deal
with the .sgml suffix, so the automatically derived output file name
becomes postgres.sgml.epub.  Fix by adding an explicit -o option.

doc/src/sgml/Makefile

index 8326c7c67364ca5b4a530d5a73732bc659f77443..2420c55681590d5d6f6cfe7cabbe292e8e2e6ed5 100644 (file)
@@ -171,7 +171,7 @@ postgres.pdf:
 epub: postgres.epub
 postgres.epub: postgres.sgml $(ALLSGML)
        $(XMLLINT) --noout --valid $<
-       $(DBTOEPUB) $<
+       $(DBTOEPUB) -o $@ $<
 
 
 ##