]> git.sur5r.net Git - cc65/blob - doc/Makefile
More SGML conversions
[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
26 # ------------------------------------------------------------------------------
27 # Rules to make targets
28
29 %.txt:  %.sgml
30         sgml2txt $<
31
32 %.html: %.sgml
33         sgml2html --split=1 $<
34
35 %.info: %.sgml
36         sgml2info $<
37
38 %.dvi:  %.sgml
39         sgml2latex $<
40
41 # ------------------------------------------------------------------------------
42 # Targets
43
44 .PHONY: all
45 all:    txt html info dvi
46
47 .PHONY: txt
48 txt:    $(TXT)
49
50 .PHONY: html
51 html:   $(HTML)
52
53 .PHONY: info
54 info:   $(INFO)
55
56 .PHONY: dvi
57 dvi:    $(DVI)
58
59 # The index.html target is special, since it does not get splitted
60 index.html:     index.sgml
61         sgml2html --split=0 $<
62
63 clean:
64         rm -f *~
65
66 zap:    clean
67         rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
68
69 # ------------------------------------------------------------------------------
70 # Make the dependencies
71
72 .PHONY: depend dep
73 depend dep:     $(OBJS:.o=.c)
74         @echo "Creating dependency information"
75         $(CC) -MM $^ > .depend
76
77