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