#
BASEDIR=.
+APIDOCDIR=docs/api
+
include $(BASEDIR)/Makefile.rules
SUBDIRS=src
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
rm -rf $(GENDIR)
rm -rf $(JARTEMP) $(JARTOC) $(JARFILE)
rm -f $(SRCJAR)
-
-
+ rm -rf $(APIDOCDIR)
codegen: $(GENDIR) compilegen
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) *
$(JARTEMP):
mkdir $(JARTEMP)
+$(APIDOCDIR):
+ mkdir $(APIDOCDIR)
+
distgen:
cd $(GENDIR) && \
rm -f $(JARTOC) && \
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)