24 Apr 2005 caspar-typesetting 20050424
1. | ||
2. | ||
3. | ||
4. | ||
5. | ||
6. | ||
7. | ||
8. | ||
9. |
caspar-typesetting - Makefile snippets for common typesetting tasks
include caspar/mk/docbook.mkor
include caspar/mk/pod.mk.
$ echo include caspar/mk/docbook.mk > Makefile $ vi karenina.dbx $ make karenina.view $ make karenina.print $ vi svejk.tex $ make svejk.view $ make svejk.print $ make $ make cleanOther targets: filename.ps, filename.pdf, filename.2ps, filename.html, filename.printbig, filename.dvi.
Variables you might like to set in your Makefile: XMLDCL (default is /usr/share/sgml/declaration/xml.dcl; if you're not on a Debian GNU/Linux system, you'll likely have to adjust this), HTML_DSL, PRINT_DSL.
In a directory where you maintain .pod files, do
$ echo include caspar/mk/pod.mk > Makefile $ vi lire.pod $ perldoc ./lire.pod $ make lire.pdf $ make $ less lire.overstrike-txt $ make cleanOther targets: filename.ps, filename.html, filename.txt, ... (Similar to the ones supplied by docbook.mk).
PRINT_DSL = print.dsl HTML_DSL = html.dsl include caspar/mk/docbook.mkOverriding the standard html-to-text convertor:
$ W3M=lynx make svejk.txt.
caspar/mk/docbook.mk, caspar/mk/pod.mk
pod.mk Uses no environment variables.
[1] perlpod(1) about Perl's Plain Old Documentation format
[2] DocBook: The Definitive Guide on http://docbook.org/,
[3] The LaTeX Project Homepage on http://www.latex-project.org/.
Some comments on advanced usage are in the files docbook.mk and pod.mk itself.