2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
38 TXT = $(SGML:.sgml=.txt)
39 HTML = $(SGML:.sgml=.html)
40 INFO = $(SGML:.sgml=.info)
41 DVI = $(SGML:.sgml=.dvi)
42 TEX = $(SGML:.sgml=.tex)
44 # ------------------------------------------------------------------------------
45 # Rules to make targets
51 sgml2html --split=1 $<
60 sgml2latex --output=tex $<
62 # ------------------------------------------------------------------------------
66 all: txt html info dvi
83 # The index.html target is special, since it does not get splitted
84 index.html: index.sgml
85 sgml2html --split=0 $<
91 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
93 # ------------------------------------------------------------------------------
94 # Special target rules
96 coding.html: coding.sgml
97 sgml2html --split=0 $<
99 funcref.html: funcref.sgml
100 sgml2html --split=2 $<
102 index.html: index.sgml
103 sgml2html --split=0 $<
105 # ------------------------------------------------------------------------------
106 # Make the dependencies
109 depend dep: $(OBJS:.o=.c)
110 @echo "Creating dependency information"
111 $(CC) -MM $^ > .depend