2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
26 TXT = $(SGML:.sgml=.txt)
27 HTML = $(SGML:.sgml=.html)
28 INFO = $(SGML:.sgml=.info)
29 DVI = $(SGML:.sgml=.dvi)
30 TEX = $(SGML:.sgml=.tex)
32 # ------------------------------------------------------------------------------
33 # Rules to make targets
39 sgml2html --split=1 $<
48 sgml2latex --output=tex $<
50 funcref.html: funcref.sgml
51 sgml2html --split=2 $<
53 # ------------------------------------------------------------------------------
57 all: txt html info dvi
74 # The index.html target is special, since it does not get splitted
75 index.html: index.sgml
76 sgml2html --split=0 $<
82 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
84 # ------------------------------------------------------------------------------
85 # Make the dependencies
88 depend dep: $(OBJS:.o=.c)
89 @echo "Creating dependency information"
90 $(CC) -MM $^ > .depend