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