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
54 TXT = $(SGML:.sgml=.txt)
55 HTML = $(SGML:.sgml=.html)
56 INFO = $(SGML:.sgml=.info)
57 DVI = $(SGML:.sgml=.dvi)
58 TEX = $(SGML:.sgml=.tex)
60 # ------------------------------------------------------------------------------
61 # Pattern-rules, to make targets
64 linuxdoc -B txt -f $(TXT_OPTIONS) $<
67 linuxdoc -B html --split=1 $(BUTTONS) $<
73 linuxdoc -B latex --output=dvi $<
76 linuxdoc -B latex --output=tex $<
78 # ------------------------------------------------------------------------------
82 all: txt html info dvi
88 html: linuxdoc $(HTML)
91 info: linuxdoc $(INFO)
101 @sgmlcheck index >/dev/null 2>&1 || { \
103 echo '"LinuxDoc Tools" does not exist on this system.'; \
104 echo 'So, most of the documentation might not have been built.'; \
114 $(RM) $(TXT) $(TEX) $(DVI) *.htm* *.inf* *.man
116 # ------------------------------------------------------------------------------
117 # Special target rules
119 coding.html: coding.sgml
120 sgml2html --split=0 $<
122 # funcref.sgml's third section is huge.
123 # So, funcref.html is split into sub-section files.
125 funcref.html: funcref.sgml
126 sgml2html --split=2 $(BUTTONS) $<
128 # The index.html target is special:
129 # It is only a table of contents. So, it should not be split.
131 index.html: index.sgml
132 sgml2html --split=0 $<