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