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