From: jtauber Date: Mon, 29 Nov 1999 18:11:46 +0000 (+0000) Subject: added new make target 'docs' to generate JavaDoc docs X-Git-Tag: pre-columns~610 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc462900c2f2c2762915ce600ecfabefb613c488;p=xmlgraphics-fop.git added new make target 'docs' to generate JavaDoc docs git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193254 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/Makefile b/Makefile index 2b98fe658..8a22c526b 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ # BASEDIR=. +APIDOCDIR=docs/api + include $(BASEDIR)/Makefile.rules SUBDIRS=src @@ -42,6 +44,24 @@ PROPERTIESXSL=$(CODEGEN)/properties.xsl CHARLISTXML =$(CODEGEN)/charlist.xml CHARLISTXSL =$(CODEGEN)/code-point-mapping.xsl +PACKAGES=org.apache.fop.apps \ + org.apache.fop.datatypes \ + org.apache.fop.fo \ + org.apache.fop.fo.flow \ + org.apache.fop.fo.pagination \ + org.apache.fop.image \ + org.apache.fop.layout \ + org.apache.fop.pdf \ + org.apache.fop.render \ + org.apache.fop.render.awt \ + org.apache.fop.render.pdf \ + org.apache.fop.render.xml \ + org.apache.fop.svg \ + org.apache.fop.viewer \ + org.apache.fop.fo.properties \ + org.apache.fop.render.pdf.fonts + + all: codegen allsubs clean: cleansubs @@ -51,8 +71,7 @@ clobber: clean rm -rf $(GENDIR) rm -rf $(JARTEMP) $(JARTOC) $(JARFILE) rm -f $(SRCJAR) - - + rm -rf $(APIDOCDIR) codegen: $(GENDIR) compilegen @@ -77,6 +96,9 @@ charlist: $(CHARLISTXML) $(CHARLISTXSL) fonts: $(FONTXML) $(FONTXSL) cd $(GENDIR) && for font in $(FONTXML) ; do $(XT) ../$$font ../$(FONTXSL) ; done +docs: all $(APIDOCDIR) + $(JAVADOC) $(JAVADOC_ARGS) $(PACKAGES) + dist: all $(JARTEMP) distgen distorg rm -f $(JARFILE) cd $(JARTEMP) && $(JAR) -cf ../$(JARFILE) * @@ -88,6 +110,9 @@ srcdist: clobber $(JARTEMP): mkdir $(JARTEMP) +$(APIDOCDIR): + mkdir $(APIDOCDIR) + distgen: cd $(GENDIR) && \ rm -f $(JARTOC) && \ diff --git a/Makefile.rules b/Makefile.rules index a6f87dc00..2826a757b 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -17,6 +17,9 @@ JAR=jar XT=${JAVA} com.jclark.xsl.sax.Driver +JAVADOC = javadoc +JAVADOC_ARGS = -overview $(BASEDIR)/src/overview.html -sourcepath "$(BASEDIR)/src;$(BASEDIR)/generated" -classpath "$(BASEDIR)/src;$(BASEDIR)/generated;$(CLASSPATH)" -d $(APIDOCDIR) + TARGETS = all clean clobber .SUFFIXES: .java .class .xml $(SUFFIXES)