From dc0c472f768d578176b0df91e3d705c9845fa4d9 Mon Sep 17 00:00:00 2001 From: gleblanc <> Date: Tue, 31 Oct 2000 04:25:24 +0000 Subject: [PATCH] First rev of a Makefile to create output from a single sgml source file. Currently, it only works on DocBook files. See the comments in the file for more information. This will NOT work on anybody's system except mine. Ideas on portability are welcomed. --- LDP/builder/Makefile.docbook | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 LDP/builder/Makefile.docbook diff --git a/LDP/builder/Makefile.docbook b/LDP/builder/Makefile.docbook new file mode 100644 index 00000000..415129eb --- /dev/null +++ b/LDP/builder/Makefile.docbook @@ -0,0 +1,57 @@ +# I deleted my first working makefile, but it should be fast to create +# a new one here. The targets currently implemented are html, +# html_onefile, text, pdf, ps, sgml.gz, html.tar.gz +# If there are more formats that I've forgotten, please let me know +# The default target is all, which creates all possible output +# formats. As of this moment, this makefile acts on all files in the +# current directory. If you know a way of getting around that, please +# let me know. + +files = `echo *.sgml | sed "s/\.sgml//g" ` + +all: html html_onefile text pdf ps sgml.gz html.tar.gz + +html: + (for i in $(files); do \ + mkdir $$i; \ + cd $$i; \ + jade -t sgml -i html -d \ + /home/gleblanc/projects/LDP/LDP/builder/dsssl/ldp.dsl\#html \ + ../$$i.sgml; \ + cd ..; \ + done;) + +html_onefile: + (for i in $(files); do \ + jade -t sgml -i html -V nochunks -d \ + /home/gleblanc/projects/LDP/LDP/builder/dsssl/ldp.dsl\#html \ + $$i.sgml > 00_$$i.html;\ + done; ) + +text: html_onefile + (for i in $(files); do \ + lynx -dump 00_$$i.html > $$i.txt; \ + done; ) + +pdf: html_onefile + (for i in $(files); do \ + htmldoc --size universal -t pdf -f $$i.pdf 00_$$i.html; \ + done; ) + +ps: html_onefile + (for i in $(files); do \ + htmldoc --size universal -t pdf -f $$i.ps 00_$$i.html; \ + done; ) + +sgml.gz: + (for i in $(files); do \ + cp $$i.sgml ldp_mk_tmp; \ + gzip -f ldp_mk_tmp; \ + mv -f ldp_mk_tmp.gz $$i.sgml.gz;\ + done; ) + +html.tar.gz: html + (for i in $(files); do \ + tar -cf $$i.tar $$i; \ + gzip -f $$i.tar; \ + done; )