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