changeset 1347:486682454795

Add a make target to generate plugin documentation Reviewed-by: ebaron, vanaltj Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-January/005434.html
author Omair Majid <omajid@redhat.com>
date Tue, 19 Nov 2013 19:35:47 -0500
parents bd5ddefd7e9f
children 8275050d9f6c
files Makefile
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Nov 19 13:23:40 2013 -0500
+++ b/Makefile	Tue Nov 19 19:35:47 2013 -0500
@@ -1,3 +1,5 @@
+JAVA            ?= java
+JAVAC           ?= javac
 MAVEN           ?= mvn
 SKIP_TESTS      ?= false
 REPO_LOC        ?= $(HOME)/.thermostat-build/mvn_repository/
@@ -6,6 +8,7 @@
 VNC             ?= vncserver
 VNC_DISPLAY     ?= :10
 VNC_FLAGS       ?= -SecurityTypes None
+XSLTPROC        ?= xsltproc
 
 #
 # Do not change anything below
@@ -82,5 +85,12 @@
 echo-repo:
 	echo "Using private Maven repository: $(REPO_LOC)"
 
+plugin-docs: plugin_docs.html
+
+plugin_docs.html:
+	$(JAVAC) distribution/tools/MergePluginDocs.java
+	$(JAVA) -cp distribution/tools MergePluginDocs > merged-plugin-docs.xml
+	$(XSLTPROC) distribution/tools/plugin-docs-html.xslt merged-plugin-docs.xml > $@
+
 # We only have phony targets
-.PHONY:	all core core-install copy-core-natives eclipse-test eclipse-test-p2 eclipse-test-deps jfreechart-deps jfreechart-p2 eclipse create-repo-dir clean-repo echo-repo
+.PHONY:	all core core-install copy-core-natives eclipse-test eclipse-test-p2 eclipse-test-deps jfreechart-deps jfreechart-p2 eclipse create-repo-dir clean-repo echo-repo plugin-docs