2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
34 TXT = $(SGML:.sgml=.txt)
35 HTML = $(SGML:.sgml=.html)
36 INFO = $(SGML:.sgml=.info)
37 DVI = $(SGML:.sgml=.dvi)
38 TEX = $(SGML:.sgml=.tex)
40 # ------------------------------------------------------------------------------
41 # Rules to make targets
47 sgml2html --split=1 $<
56 sgml2latex --output=tex $<
58 # ------------------------------------------------------------------------------
62 all: txt html info dvi
79 # The index.html target is special, since it does not get splitted
80 index.html: index.sgml
81 sgml2html --split=0 $<
87 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
89 # ------------------------------------------------------------------------------
90 # Special target rules
92 coding.html: coding.sgml
93 sgml2html --split=0 $<
95 funcref.html: funcref.sgml
96 sgml2html --split=2 $<
98 index.html: index.sgml
99 sgml2html --split=0 $<
101 # ------------------------------------------------------------------------------
102 # Make the dependencies
105 depend dep: $(OBJS:.o=.c)
106 @echo "Creating dependency information"
107 $(CC) -MM $^ > .depend