2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
33 TXT = $(SGML:.sgml=.txt)
34 HTML = $(SGML:.sgml=.html)
35 INFO = $(SGML:.sgml=.info)
36 DVI = $(SGML:.sgml=.dvi)
37 TEX = $(SGML:.sgml=.tex)
39 # ------------------------------------------------------------------------------
40 # Rules to make targets
46 sgml2html --split=1 $<
55 sgml2latex --output=tex $<
57 # ------------------------------------------------------------------------------
61 all: txt html info dvi
78 # The index.html target is special, since it does not get splitted
79 index.html: index.sgml
80 sgml2html --split=0 $<
86 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
88 # ------------------------------------------------------------------------------
89 # Special target rules
91 coding.html: coding.sgml
92 sgml2html --split=0 $<
94 funcref.html: funcref.sgml
95 sgml2html --split=2 $<
97 index.html: index.sgml
98 sgml2html --split=0 $<
100 # ------------------------------------------------------------------------------
101 # Make the dependencies
104 depend dep: $(OBJS:.o=.c)
105 @echo "Creating dependency information"
106 $(CC) -MM $^ > .depend