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