#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.33 2001/03/06 20:41:06 petere Exp $
+# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.34 2001/03/10 16:05:35 petere Exp $
#
#----------------------------------------------------------------------------
## Semi-automatic generation of some text files.
##
+JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -i output-text -t sgml
+
INSTALL HISTORY: % : %.html
@echo "|";\
echo "| You should now take \`$<', save it as a text file in Netscape,";\
echo "| and put it in place of the existing \`$@' file.";\
echo "|"
+INSTALL.html: standalone-install.sgml installation.sgml
+ $(JADE.text) -V nochunks $+ >$@
-INSTALL.html HISTORY.html: %.html : tempfile_%.html
- sed 's/Chapter 1. *//g' $< >$@
-
-tempfile_INSTALL.html tempfile_HISTORY.html: tempfile_%.html : tempfile_%.sgml
- $(JADE.html) -V nochunks $< >$@
-
-
-tempfile_INSTALL.sgml: standalone-install.sgml installation.sgml
- cat $+ >$@
-
-tempfile_HISTORY.sgml: release.sgml
- ( echo ''; \
- cat $< ) >$@
-
-
-.INTERMEDIATE: tempfile_INSTALL.html tempfile_HISTORY.html tempfile_INSTALL.sgml tempfile_HISTORY.sgml
+HISTORY.html: release.sgml
+ ( echo ''; \
+ cat $< ) >tempfile_HISTORY.sgml
+ $(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
+ rm tempfile_HISTORY.sgml
##