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