2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
31 TXT = $(SGML:.sgml=.txt)
32 HTML = $(SGML:.sgml=.html)
33 INFO = $(SGML:.sgml=.info)
34 DVI = $(SGML:.sgml=.dvi)
35 TEX = $(SGML:.sgml=.tex)
37 # ------------------------------------------------------------------------------
38 # Rules to make targets
44 sgml2html --split=1 $<
53 sgml2latex --output=tex $<
55 # ------------------------------------------------------------------------------
59 all: txt html info dvi
76 # The index.html target is special, since it does not get splitted
77 index.html: index.sgml
78 sgml2html --split=0 $<
84 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
86 # ------------------------------------------------------------------------------
87 # Special target rules
89 coding.html: coding.sgml
90 sgml2html --split=0 $<
92 funcref.html: funcref.sgml
93 sgml2html --split=2 $<
95 # ------------------------------------------------------------------------------
96 # Make the dependencies
99 depend dep: $(OBJS:.o=.c)
100 @echo "Creating dependency information"
101 $(CC) -MM $^ > .depend