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