]> git.sur5r.net Git - cc65/blob - doc/Makefile
Added explanation for --codesize
[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         coding.sgml     \
13         debugging.sgml  \
14         dio.sgml        \
15         geos.sgml       \
16         index.sgml      \
17         intro.sgml      \
18         ld65.sgml       \
19         library.sgml
20
21 TXT   = $(SGML:.sgml=.txt)
22 HTML  = $(SGML:.sgml=.html)
23 INFO  = $(SGML:.sgml=.info)
24 DVI   = $(SGML:.sgml=.dvi)
25 TEX   = $(SGML:.sgml=.tex)
26
27 # ------------------------------------------------------------------------------
28 # Rules to make targets
29
30 %.txt:  %.sgml
31         sgml2txt $<
32
33 %.html: %.sgml
34         sgml2html --split=1 $<
35
36 %.info: %.sgml
37         sgml2info $<
38
39 %.dvi:  %.sgml
40         sgml2latex $<
41
42 %.tex:  %.sgml
43         sgml2latex --output=tex $<
44
45 # ------------------------------------------------------------------------------
46 # Targets
47
48 .PHONY: all
49 all:    txt html info dvi
50
51 .PHONY: txt
52 txt:    $(TXT)
53
54 .PHONY: html
55 html:   $(HTML)
56
57 .PHONY: info
58 info:   $(INFO)
59
60 .PHONY: dvi
61 dvi:    $(DVI)
62
63 .PHONY: tex
64 tex:    $(TEX)
65
66 # The index.html target is special, since it does not get splitted
67 index.html:     index.sgml
68         sgml2html --split=0 $<
69
70 clean:
71         rm -f *~
72
73 zap:    clean
74         rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
75
76 # ------------------------------------------------------------------------------
77 # Make the dependencies
78
79 .PHONY: depend dep
80 depend dep:     $(OBJS:.o=.c)
81         @echo "Creating dependency information"
82         $(CC) -MM $^ > .depend
83
84