summaryrefslogtreecommitdiffstats
path: root/doc/module.rules
blob: f318cf2a4761e8851c3e4d15dc748798494a0880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$(eval $(call import.MODULE.rules,DOC))

doc: doc.articles

doc.articles: $(DOC.texi2txt.out)

doc.clean:
	$(RM.exe) -fr $(DOC.out/)

$(DOC.texi2txt.out): | $(DOC.m4.out)
$(DOC.texi2txt.out): | $(dir $(DOC.texi2txt.out))
$(DOC.texi2txt.out): $(DOC.texi.includes)
$(DOC.texi2txt.out): $(DOC.out.articles/)txt/%.txt: $(DOC.in/)texi/%.texi
	$(call MAKEINFO,txt,$<,$@)
	@echo $^

$(DOC.m4.out): | $(dir $(DOC.m4.out))
$(DOC.m4.out): $(DOC.M4.deps)
$(DOC.m4.out): $(DOC.out/)%: $(DOC.in/)%.m4
	$(call DOC.M4,$@,$<)