2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
24 TXT = $(SGML:.sgml=.txt)
25 HTML = $(SGML:.sgml=.html)
26 INFO = $(SGML:.sgml=.info)
27 DVI = $(SGML:.sgml=.dvi)
28 TEX = $(SGML:.sgml=.tex)
30 # ------------------------------------------------------------------------------
31 # Rules to make targets
37 sgml2html --split=1 $<
46 sgml2latex --output=tex $<
48 funcref.html: funcref.sgml
49 sgml2html --split=2 $<
51 # ------------------------------------------------------------------------------
55 all: txt html info dvi
72 # The index.html target is special, since it does not get splitted
73 index.html: index.sgml
74 sgml2html --split=0 $<
80 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
82 # ------------------------------------------------------------------------------
83 # Make the dependencies
86 depend dep: $(OBJS:.o=.c)
87 @echo "Creating dependency information"
88 $(CC) -MM $^ > .depend