blob: 0368fd2a82f58435f870a028ca0a22425df00182 (
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
|
# To build this stuff, you need the linuxdoc tools and htmldoc. On Debian,
# this means: linuxdoc-tools linuxdoc-tools-text htmldoc
#
# - mdz
TARGETS = mythtv-HOWTO.txt mythtv-HOWTO.html mythtv-HOWTO-singlehtml.html mythtv-HOWTO.pdf index.html
LINUXDOC_HTML_SPLIT := 1
all: $(TARGETS)
clean:
rm -f $(TARGETS) $(patsubst %.html,%-[0-9]*.html,$(filter %.html,$(TARGETS)))
rm -Rf doxygen-dev-docs doxygen-warnings.txt
distclean: clean
validate: mythtv-HOWTO.sgml
linuxdoc -B check $<
%.txt: %.sgml
linuxdoc -B txt $<
# Generate PDF via LaTeX using linuxdoc
#%.pdf: %.sgml
# linuxdoc -B latex -o pdf $<
# Generate PDF via HTML using htmldoc
%.pdf: %-singlehtml.html
# htmldoc exits unsuccessfully for no good reason -mdz
htmldoc --book --quiet --outfile $@ $< || true
%.html: %.sgml
linuxdoc -B html --split=$(LINUXDOC_HTML_SPLIT) --toc=2 $<
%-singlehtml.html: LINUXDOC_HTML_SPLIT=0
%-singlehtml.sgml: %.sgml
cp $< $@
index.html: mythtv-HOWTO.html
cp $< $@
devdocs:
doxygen doxygen-create-developer-docs.cfg
|