summaryrefslogtreecommitdiffstats
path: root/doc/module.rules
diff options
context:
space:
mode:
Diffstat (limited to 'doc/module.rules')
-rw-r--r--doc/module.rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/module.rules b/doc/module.rules
new file mode 100644
index 000000000..f318cf2a4
--- /dev/null
+++ b/doc/module.rules
@@ -0,0 +1,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,$@,$<)