3 # Makefile for the cc65 documentation
6 # You can put navigation-arrow pictures (next, back, contents) into HTML files
7 # by setting this variable, either here or on make's command-line.
8 # (You will need to copy the .png files from "share/doc/linuxdoc-tools*/html/".)
12 # These options decide how text files are made:
13 # -f -- removes the backspace-overtyping that makes bold text
14 # in the more/less commands and on typewriter-printers
15 # -m -- makes Unix manual pages
55 TXT = $(SGML:.sgml=.txt)
56 HTML = $(SGML:.sgml=.html)
57 INFO = $(SGML:.sgml=.info)
58 DVI = $(SGML:.sgml=.dvi)
59 TEX = $(SGML:.sgml=.tex)
61 # ------------------------------------------------------------------------------
62 # Pattern-rules, to make targets
65 linuxdoc -B txt -f $(TXT_OPTIONS) $<
68 linuxdoc -B html --split=1 $(BUTTONS) $<
74 linuxdoc -B latex --output=dvi $<
77 linuxdoc -B latex --output=tex $<
79 # ------------------------------------------------------------------------------
83 all: txt html info dvi
89 html: linuxdoc $(HTML)
92 info: linuxdoc $(INFO)
102 @sgmlcheck index >/dev/null 2>&1 || { \
104 echo '"LinuxDoc Tools" does not exist on this system.'; \
105 echo 'So, most of the documentation might not have been built.'; \
115 $(RM) $(TXT) $(TEX) $(DVI) *.htm* *.inf* *.man
117 # ------------------------------------------------------------------------------
118 # Special target rules
120 coding.html: coding.sgml
121 sgml2html --split=0 $<
123 # funcref.sgml's third section is huge.
124 # So, funcref.html is split into sub-section files.
126 funcref.html: funcref.sgml
127 sgml2html --split=2 $(BUTTONS) $<
129 # The index.html target is special:
130 # It is only a table of contents. So, it should not be split.
132 index.html: index.sgml
133 sgml2html --split=0 $<