-spec.html: spec-html.xml TidyHTML-spec MyStyle-chunk-html.xsl \
- MyStyle-html.xsl MyStyle.xsl
- /bin/rm -rf spec.html
- xmlto -x MyStyle-chunk-html.xsl -o spec.html html spec-html.xml
- ./TidyHTML-spec
+###
+### PS/PDF generation using SDoP
+###
+
+sdop-spec.ps: spec-pr.xml
+ sdop -o spec.ps spec-pr.xml
+
+sdop-spec.pdf: spec.ps
+ ps2pdf spec.ps spec.pdf
+
+###
+### PS/PDF default setting
+###
+
+spec.ps: sdop-spec.ps
+
+spec.pdf: sdop-spec.pdf
+
+###
+###
+
+spec-txt.html: spec-txt.xml \
+ MyStyle-txt-html.xsl MyStyle-html.xsl MyStyle.xsl
+ xmlto -x MyStyle-txt-html.xsl html-nochunks $<
+
+spec.utf8: spec-txt.html Tidytxt
+ @grep -iq 'LC_CTYPE=.*utf-\?8' local_params || { \
+ echo 'your current locale does not support UTF-8' >&2; \
+ false; }
+ w3m -dump $< | ./Tidytxt -utf8 >$@
+
+spec.txt: spec-txt.html Tidytxt
+ LC_ALL=C w3m -dump $< | ./Tidytxt >$@
+ ./SanityTestText spec.txt