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