2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
36 TXT = $(SGML:.sgml=.txt)
37 HTML = $(SGML:.sgml=.html)
38 INFO = $(SGML:.sgml=.info)
39 DVI = $(SGML:.sgml=.dvi)
40 TEX = $(SGML:.sgml=.tex)
42 # ------------------------------------------------------------------------------
43 # Rules to make targets
49 sgml2html --split=1 $<
58 sgml2latex --output=tex $<
60 # ------------------------------------------------------------------------------
64 all: txt html info dvi
81 # The index.html target is special, since it does not get splitted
82 index.html: index.sgml
83 sgml2html --split=0 $<
89 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
91 # ------------------------------------------------------------------------------
92 # Special target rules
94 coding.html: coding.sgml
95 sgml2html --split=0 $<
97 funcref.html: funcref.sgml
98 sgml2html --split=2 $<
100 index.html: index.sgml
101 sgml2html --split=0 $<
103 # ------------------------------------------------------------------------------
104 # Make the dependencies
107 depend dep: $(OBJS:.o=.c)
108 @echo "Creating dependency information"
109 $(CC) -MM $^ > .depend