]> git.sur5r.net Git - cc65/blob - doc/Makefile
Converted cc65.txt to SGML (incomplete). Several corrections in the other
[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
13 TXT   = $(SGML:.sgml=.txt)
14 HTML  = $(SGML:.sgml=.html)
15 INFO  = $(SGML:.sgml=.info)
16 DVI   = $(SGML:.sgml=.dvi)
17
18 # ------------------------------------------------------------------------------
19 # Rules to make targets
20
21 %.txt:  %.sgml
22         sgml2txt $<
23
24 %.html: %.sgml
25         sgml2html --split=0 $<
26
27 %.info: %.sgml
28         sgml2info $<
29
30 %.dvi:  %.sgml
31         sgml2latex $<
32
33 # ------------------------------------------------------------------------------
34 # Targets
35
36 .PHONY: all
37 all:    txt html info dvi
38
39 .PHONY: txt
40 txt:    $(TXT)
41
42 .PHONY: html
43 html:   $(HTML)
44
45 .PHONY: info
46 info:   $(INFO)
47
48 .PHONY: dvi
49 dvi:    $(DVI)
50
51 clean:
52         rm -f *~
53
54 zap:    clean
55         rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
56
57 # ------------------------------------------------------------------------------
58 # Make the dependencies
59
60 .PHONY: depend dep
61 depend dep:     $(OBJS:.o=.c)
62         @echo "Creating dependency information"
63         $(CC) -MM $^ > .depend
64
65