2 # Makefile for the cc65 documentation
6 # Default for the compiler lib search path as compiler define
19 TXT = $(SGML:.sgml=.txt)
20 HTML = $(SGML:.sgml=.html)
21 INFO = $(SGML:.sgml=.info)
22 DVI = $(SGML:.sgml=.dvi)
24 # ------------------------------------------------------------------------------
25 # Rules to make targets
31 sgml2html --split=1 $<
39 # ------------------------------------------------------------------------------
43 all: txt html info dvi
57 # The index.html target is special, since it does not get splitted
58 index.html: index.sgml
59 sgml2html --split=0 $<
65 rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
67 # ------------------------------------------------------------------------------
68 # Make the dependencies
71 depend dep: $(OBJS:.o=.c)
72 @echo "Creating dependency information"
73 $(CC) -MM $^ > .depend