2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
37 TXT = $(SGML:.sgml=.txt)
38 HTML = $(SGML:.sgml=.html)
39 INFO = $(SGML:.sgml=.info)
40 DVI = $(SGML:.sgml=.dvi)
41 TEX = $(SGML:.sgml=.tex)
43 # ------------------------------------------------------------------------------
44 # Rules to make targets
50 sgml2html --split=1 $<
59 sgml2latex --output=tex $<
61 # ------------------------------------------------------------------------------
65 all: txt html info dvi
82 # The index.html target is special, since it does not get splitted
83 index.html: index.sgml
84 sgml2html --split=0 $<
90 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
92 # ------------------------------------------------------------------------------
93 # Special target rules
95 coding.html: coding.sgml
96 sgml2html --split=0 $<
98 funcref.html: funcref.sgml
99 sgml2html --split=2 $<
101 index.html: index.sgml
102 sgml2html --split=0 $<
104 # ------------------------------------------------------------------------------
105 # Make the dependencies
108 depend dep: $(OBJS:.o=.c)
109 @echo "Creating dependency information"
110 $(CC) -MM $^ > .depend