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
49 TXT = $(SGML:.sgml=.txt)
50 HTML = $(SGML:.sgml=.html)
51 INFO = $(SGML:.sgml=.info)
52 DVI = $(SGML:.sgml=.dvi)
53 TEX = $(SGML:.sgml=.tex)
55 # ------------------------------------------------------------------------------
56 # Pattern-rules, to make targets
59 sgml2txt $(TXT_OPTIONS) $<
62 sgml2html --split=1 $(BUTTONS) $<
71 sgml2latex --output=tex $<
73 # ------------------------------------------------------------------------------
77 all: txt html info dvi
83 html: linuxdoc $(HTML)
86 info: linuxdoc $(INFO)
96 @sgmlcheck index >/dev/null 2>&1 || { \
98 echo '"LinuxDoc Tools" does not exist on this system.'; \
99 echo 'So, most of the documentation might not have been built.'; \
109 $(RM) $(TXT) $(TEX) $(DVI) *.htm* *.inf* *.man
111 # ------------------------------------------------------------------------------
112 # Special target rules
114 coding.html: coding.sgml
115 sgml2html --split=0 $<
117 # funcref.sgml's third section is huge.
118 # So, funcref.html is split into sub-section files.
120 funcref.html: funcref.sgml
121 sgml2html --split=2 $(BUTTONS) $<
123 # The index.html target is special:
124 # It is only a table of contents. So, it should not be split.
126 index.html: index.sgml
127 sgml2html --split=0 $<