2
2
#
3
3
# PostgreSQL documentation makefile
4
4
#
5
- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.76 2006/04/06 18:54:36 petere Exp $
5
+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.77 2006/10/03 21:13:17 momjian Exp $
6
6
#
7
7
# ----------------------------------------------------------------------------
8
8
@@ -212,7 +212,7 @@ XSLTPROC = xsltproc
212
212
213
213
postgres.xml : postgres.sgml$(GENERATED_SGML )
214
214
$(OSX ) -x lower$< | \
215
- sed -e' s/\[\(lt\|gt\|amp\|nbsp\|copy\|quot\| ouml\|uuml\|egrave \) *\]/\&\1;/g' \
215
+ sed -e' s/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\| ouml\|pi\|quot\|uuml \) *\]/\&\1;/g' \
216
216
-e' 1a\' -e' <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">' \
217
217
> $@
218
218
@@ -222,6 +222,24 @@ testxml: stylesheet.xsl postgres.xml
222
222
htmlhelp : stylesheet-hh.xsl postgres.xml
223
223
$(XSLTPROC ) $(XSLTPROCFLAGS ) --stringparam pg.version' $(VERSION)' $^
224
224
225
+ # #
226
+ # # Experimental Texinfo targets
227
+ # #
228
+
229
+ DB2X_TEXIXML = db2x_texixml
230
+ DB2X_XSLTPROC = db2x_xsltproc
231
+ MAKEINFO = makeinfo
232
+
233
+ postgres.texixml : postgres.xml
234
+ $(DB2X_XSLTPROC ) -s texi$< -o$@
235
+
236
+ postgres.texi : postgres.texixml
237
+ $(DB2X_TEXIXML ) --encoding=iso-8859-1//TRANSLIT$< \
238
+ --to-stdout> $@
239
+
240
+ postgres.info : postgres.texi
241
+ $(MAKEINFO ) --enable-encoding --no-split\
242
+ --no-validate$< -o$@
225
243
226
244
# #
227
245
# # Check
@@ -249,3 +267,5 @@ clean distclean maintainer-clean:
249
267
rm -f INSTALL HISTORY regress_README
250
268
# XML
251
269
rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk
270
+ # Texinfo
271
+ rm -f *.texixml *.texi *.info db2texi.refs