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)
26 # ------------------------------------------------------------------------------
27 # Rules to make targets
33 sgml2html --split=1 $<
41 # ------------------------------------------------------------------------------
45 all: txt html info dvi
59 # The index.html target is special, since it does not get splitted
60 index.html: index.sgml
61 sgml2html --split=0 $<
67 rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
69 # ------------------------------------------------------------------------------
70 # Make the dependencies
73 depend dep: $(OBJS:.o=.c)
74 @echo "Creating dependency information"
75 $(CC) -MM $^ > .depend