summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 7b65192877a20a7ca3307a31126fd39ddb2a3c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Makefile to generate help pages
#

man  = xxvd.1
html = xxvd.html
pdf  = xxvd.pdf
txt  = xxvd.txt


%.1: %.sgml
	@docbook2x-man --to-stdout $< > $@

#%.1: %.sgml
#	@docbook-to-man $< > $@

%.texi: %.sgml
	@docbook2x-texi --to-stdout $< > $@

%.html: %.texi
	@texi2html $<

%.pdf: %.texi
	@texi2pdf $< -o $@

#%.txt: %.1
#	@groff -a -man -Tascii $< > $@

#
# generate html files
#
html: $(html)


#
# generate pdf files
#
pdf: $(pdf)


#
# generate man files
#
man: $(man) 

#
# generate plain ascii files
#
#text: $(txt) 

#
# generate all files
#
all: help

#
# clean generated files
#
clean:
	@rm -f $(txt) $(man) $(pdf) $(html)

#
# End user targets
#
help:
	@echo "----------- documentation make targets --------------"
	@echo "man:              generate manpages (requires: docbook2x-man)"
	@echo "pdf:              generate pdf (requires: docbook2x-texi, texi2pdf)"
	@echo "html:             generate html (requires: docbook2x-texi, texi2html)"
#	@echo "text:             generate text (requires: docbook2x-man, groff)"