1 $(eval $(call import.MODULE.defs,DOC,doc))
4 DOC.out/ = $(BUILD/)doc/
6 DOC.out.api/ = $(DOC.out/)api/
7 DOC.out.articles/ = $(DOC.out/)articles/
9 ###############################################################################
12 texi/base/handbrake.texi.m4
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))
17 DOC.texi.includes = $(wildcard $(DOC.in/)texi/*/*.texi)
18 DOC.texi.articles = $(wildcard $(DOC.in/)texi/*.texi)
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))
24 BUILD.out += $(DOC.m4.out)
25 BUILD.out += $(DOC.texi2html.out)
26 BUILD.out += $(DOC.texi2txt.out)
27 BUILD.out += $(DOC.texi2xml.out)
29 ###############################################################################
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)
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)