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
53 TXT = $(SGML:.sgml=.txt)
54 HTML = $(SGML:.sgml=.html)
55 INFO = $(SGML:.sgml=.info)
56 DVI = $(SGML:.sgml=.dvi)
57 TEX = $(SGML:.sgml=.tex)
59 # ------------------------------------------------------------------------------
60 # Pattern-rules, to make targets
63 linuxdoc -B txt -f $(TXT_OPTIONS) $<
66 linuxdoc -B html --split=1 $(BUTTONS) $<
72 linuxdoc -B latex --output=dvi $<
75 linuxdoc -B latex --output=tex $<
77 # ------------------------------------------------------------------------------
81 all: txt html info dvi
87 html: linuxdoc $(HTML)
90 info: linuxdoc $(INFO)
100 @sgmlcheck index >/dev/null 2>&1 || { \
102 echo '"LinuxDoc Tools" does not exist on this system.'; \
103 echo 'So, most of the documentation might not have been built.'; \
113 $(RM) $(TXT) $(TEX) $(DVI) *.htm* *.inf* *.man
115 # ------------------------------------------------------------------------------
116 # Special target rules
118 coding.html: coding.sgml
119 sgml2html --split=0 $<
121 # funcref.sgml's third section is huge.
122 # So, funcref.html is split into sub-section files.
124 funcref.html: funcref.sgml
125 sgml2html --split=2 $(BUTTONS) $<
127 # The index.html target is special:
128 # It is only a table of contents. So, it should not be split.
130 index.html: index.sgml
131 sgml2html --split=0 $<