]> git.sur5r.net Git - cc65/blob - doc/Makefile
Removed the old cc65.txt file, added documentation for the dio api.
[cc65] / doc / Makefile
1 #
2 # Makefile for the cc65 documentation
3 #
4
5
6 # Default for the compiler lib search path as compiler define
7
8 SGML  = ar65.sgml       \
9         ca65.sgml       \
10         cc65.sgml       \
11         cl65.sgml       \
12         dio.sgml
13
14 TXT   = $(SGML:.sgml=.txt)
15 HTML  = $(SGML:.sgml=.html)
16 INFO  = $(SGML:.sgml=.info)
17 DVI   = $(SGML:.sgml=.dvi)
18
19 # ------------------------------------------------------------------------------
20 # Rules to make targets
21
22 %.txt:  %.sgml
23         sgml2txt $<
24
25 %.html: %.sgml
26         sgml2html --split=0 $<
27
28 %.info: %.sgml
29         sgml2info $<
30
31 %.dvi:  %.sgml
32         sgml2latex $<
33
34 # ------------------------------------------------------------------------------
35 # Targets
36
37 .PHONY: all
38 all:    txt html info dvi
39
40 .PHONY: txt
41 txt:    $(TXT)
42
43 .PHONY: html
44 html:   $(HTML)
45
46 .PHONY: info
47 info:   $(INFO)
48
49 .PHONY: dvi
50 dvi:    $(DVI)
51
52 clean:
53         rm -f *~
54
55 zap:    clean
56         rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
57
58 # ------------------------------------------------------------------------------
59 # Make the dependencies
60
61 .PHONY: depend dep
62 depend dep:     $(OBJS:.o=.c)
63         @echo "Creating dependency information"
64         $(CC) -MM $^ > .depend
65
66