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