2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
32 TXT = $(SGML:.sgml=.txt)
33 HTML = $(SGML:.sgml=.html)
34 INFO = $(SGML:.sgml=.info)
35 DVI = $(SGML:.sgml=.dvi)
36 TEX = $(SGML:.sgml=.tex)
38 # ------------------------------------------------------------------------------
39 # Rules to make targets
45 sgml2html --split=1 $<
54 sgml2latex --output=tex $<
56 # ------------------------------------------------------------------------------
60 all: txt html info dvi
77 # The index.html target is special, since it does not get splitted
78 index.html: index.sgml
79 sgml2html --split=0 $<
85 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
87 # ------------------------------------------------------------------------------
88 # Special target rules
90 coding.html: coding.sgml
91 sgml2html --split=0 $<
93 funcref.html: funcref.sgml
94 sgml2html --split=2 $<
96 index.html: index.sgml
97 sgml2html --split=0 $<
99 # ------------------------------------------------------------------------------
100 # Make the dependencies
103 depend dep: $(OBJS:.o=.c)
104 @echo "Creating dependency information"
105 $(CC) -MM $^ > .depend