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