2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
30 TXT = $(SGML:.sgml=.txt)
31 HTML = $(SGML:.sgml=.html)
32 INFO = $(SGML:.sgml=.info)
33 DVI = $(SGML:.sgml=.dvi)
34 TEX = $(SGML:.sgml=.tex)
36 # ------------------------------------------------------------------------------
37 # Rules to make targets
43 sgml2html --split=1 $<
52 sgml2latex --output=tex $<
54 funcref.html: funcref.sgml
55 sgml2html --split=2 $<
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 # Make the dependencies
92 depend dep: $(OBJS:.o=.c)
93 @echo "Creating dependency information"
94 $(CC) -MM $^ > .depend