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