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