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