OSDN Git Service

fix: cannot preview with QT
[handbrake-jp/handbrake-jp.git] / doc / module.defs
1 $(eval $(call import.MODULE.defs,DOC,doc))
2
3 DOC.in/  = $(SRC/)doc/
4 DOC.out/ = $(BUILD/)doc/
5
6 DOC.out.api/      = $(DOC.out/)api/
7 DOC.out.articles/ = $(DOC.out/)articles/
8
9 ###############################################################################
10
11 DOC.m4.srcs = \
12     texi/base/handbrake.texi.m4
13
14 DOC.m4.in   = $(foreach n,$(DOC.m4.srcs),$(DOC.in/)$n)
15 DOC.m4.out  = $(patsubst $(DOC.in/)%.m4,$(DOC.out/)%,$(DOC.m4.in))
16
17 DOC.texi.includes = $(wildcard $(DOC.in/)texi/*/*.texi)
18 DOC.texi.articles = $(wildcard $(DOC.in/)texi/*.texi)
19
20 DOC.texi2html.out = $(patsubst $(DOC.in/)texi/%.texi,$(DOC.out.articles/)html/%.html,$(DOC.texi.articles))
21 DOC.texi2txt.out  = $(patsubst $(DOC.in/)texi/%.texi,$(DOC.out.articles/)txt/%.txt,$(DOC.texi.articles))
22 DOC.texi2xml.out  = $(patsubst $(DOC.in/)texi/%.texi,$(DOC.out.articles/)xml/%.xml,$(DOC.texi.articles))
23
24 BUILD.out += $(DOC.m4.out)
25 BUILD.out += $(DOC.texi2html.out)
26 BUILD.out += $(DOC.texi2txt.out)
27 BUILD.out += $(DOC.texi2xml.out)
28
29 ###############################################################################
30
31 DOC.M4.exe   = $(M4.exe)
32 DOC.M4.flags = -I$(BUILD/)project
33 DOC.M4.deps  = $(BUILD/)project/handbrake.m4
34 DOC.M4       = $(DOC.M4.exe) $(DOC.M4.flags) $(2) > $(1)
35
36 MAKEINFO.exe        = makeinfo
37 MAKEINFO.flags      = -I$(DOC.out/)texi -I$(DOC.in/)texi
38 MAKEINFO.flags.html = --html --no-headers --no-split
39 MAKEINFO.flags.txt  = --plaintext --no-headers
40 MAKEINFO.flags.xml  = --xml --output-indent=4
41 MAKEINFO            = $(MAKEINFO.exe) $(MAKEINFO.flags) $(MAKEINFO.flags.$(1)) $(2) -o $(3)