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