+###
+### PS/PDF generation using fop
+###
+
+fop-filter.ps: filter.fo
+ fop filter.fo -ps filter-tmp.ps
+ mv filter-tmp.ps filter.ps
+
+# Do not use ps2pdf from the PS version; better PDF is generated directly. It
+# contains cross links etc.
+
+fop-filter.pdf: filter.fo PageLabelPDF
+ fop filter.fo -pdf filter-tmp.pdf
+ ./PageLabelPDF 2 <filter-tmp.pdf >filter.pdf
+
+###
+### PS/PDF generation using SDoP
+###
+
+sdop-filter.ps: filter-pr.xml
+ sdop -o filter.ps filter-pr.xml
+
+sdop-filter.pdf: filter.ps
+ ps2pdf filter.ps filter.pdf
+
+###
+### PS/PDF default setting
+###
+
+filter.ps: sdop-filter.ps
+
+filter.pdf: sdop-filter.pdf
+
+###
+###
+
+filter.html: filter-html.xml TidyHTML-filter MyStyle-nochunk-html.xsl \
+ MyStyle-html.xsl MyStyle.xsl