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