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