2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
21 TXT = $(SGML:.sgml=.txt)
22 HTML = $(SGML:.sgml=.html)
23 INFO = $(SGML:.sgml=.info)
24 DVI = $(SGML:.sgml=.dvi)
25 TEX = $(SGML:.sgml=.tex)
27 # ------------------------------------------------------------------------------
28 # Rules to make targets
34 sgml2html --split=1 $<
43 sgml2latex --output=tex $<
45 # ------------------------------------------------------------------------------
49 all: txt html info dvi
66 # The index.html target is special, since it does not get splitted
67 index.html: index.sgml
68 sgml2html --split=0 $<
74 rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
76 # ------------------------------------------------------------------------------
77 # Make the dependencies
80 depend dep: $(OBJS:.o=.c)
81 @echo "Creating dependency information"
82 $(CC) -MM $^ > .depend