Patchwork [MELT] HTML and PDF targets for plugin doc

login
register
mail settings
Submitter Alexandre Lissy
Date Aug. 25, 2011, 2:28 p.m.
Message ID <1314282509-3174-2-git-send-email-alissy@mandriva.com>
Download mbox | patch
Permalink /patch/111578/
State New
Headers show

Comments

Alexandre Lissy - Aug. 25, 2011, 2:28 p.m.
Plugin documentation was being built as .info file thanks to the
default's make .info target, but none were defined for HTML and PDF. The
present commit add the missing targets.
---
 contrib/ChangeLog.MELT       |    3 +++
 contrib/MELT-Plugin-Makefile |    9 +++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

Patch

diff --git a/contrib/ChangeLog.MELT b/contrib/ChangeLog.MELT
index 42f2aca..01aaf4c 100644
--- a/contrib/ChangeLog.MELT
+++ b/contrib/ChangeLog.MELT
@@ -1,4 +1,7 @@ 
 2011-08-25  Alexandre Lissy  <alissy@mandriva.com>
+	* MELT-Plugin-Makefile: Adding target to build .html and .pdf
+
+2011-08-25  Alexandre Lissy  <alissy@mandriva.com>
 	* MELT-Plugin-Makefile (install-melt-modules): Fix installation paths
 
 2011-07-18  Basile Starynkevitch  <basile@starynkevitch.net>
diff --git a/contrib/MELT-Plugin-Makefile b/contrib/MELT-Plugin-Makefile
index a4be1f0..8625c09 100644
--- a/contrib/MELT-Plugin-Makefile
+++ b/contrib/MELT-Plugin-Makefile
@@ -66,6 +66,9 @@  MAKEINFO?= makeinfo
 ## the GNU texi2pdf utility from makeinfo 
 TEXI2PDF?= texi2pdf
 
+## the GNU texi2html utility from makeinfo 
+TEXI2HTML?= texi2html
+
 ## an install driver, which could be sudo or echo, or stay empty
 INSTALL_DRIVER?=
 
@@ -246,6 +249,12 @@  MELTDOCPDF= $(patsubst %.texi,%.pdf,$(MELTDOCSRC))
 MELTDOCINFO= $(patsubst %.texi,%.info,$(MELTDOCSRC))
 MELTDOCHTML= $(patsubst %.texi,%.html,$(MELTDOCSRC))
 
+%.html: %.texi
+	$(TEXI2HTML) $(TEXI2HTML_FLAGS) $< -o $@
+
+%.pdf: %.texi
+	$(TEXI2PDF) $(TEXI2PDF_FLAGS) $< -o $@
+
 doc: meltgendoc.texi meltplugin.texi meltpluginapi.texi doc-pdf doc-info doc-html
 
 doc-pdf: $(MELTDOCPDF)