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