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