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