#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Makefile to build the BeanInfo generation tool (ie, a doclet), and
# then the beaninfo itself. Swing versions prior to 1.2 are no longer
# built.
#
# This makefile could be a lot simpler if we made it more regular.
#
# identify this as a swingbeans product - used only to identify a
# unique name for OBJDIR
#
# Main targets provided by this makefile.
#
# get the absolute path to the jar command.
PREFIX = 1.2
# since JAVADOC_CMD runs on ALT_BOOTDIR, the doclet and all its classes must be compiled to match
#
# Main target.
#
#
# Make the doclet.
#
@$(ECHO) "Making directory..." $@
@$(MKDIR) -p $@
$(JAVAC_CMD) $(LOCAL_JAVAC_FLAGS) $(DOCLET_JAVAC_FLAGS) -classpath "$(CLASSBINDIR)$(CLASSPATH_SEPARATOR)$(DOCLETSRC)" -d $(DOCLETDST) $?
# To run, the doclet needs SwingBeanInfoBase class. Also Notice the lie
# here, SwingBeanInfoBase.class goes elswhere.
.SwingBeanInfo: $(OBJDIR) $(BEANCLASSDIR) $(BEANSRCDIR) $(SWINGPKG)/BeanInfoUtils.class $(SWINGPKG)/SwingBeanInfoBase.class
$(SWINGPKG)/SwingBeanInfoBase.class: $(BEANSRCDIR)/SwingBeanInfoBase.java $(BEANSRCDIR)/BeanInfoUtils.java
$(JAVAC_CMD) $(LOCAL_JAVAC_FLAGS) $(DOCLET_JAVAC_FLAGS) -classpath $(BEANCLASSDIR) -d $(BEANCLASSDIR) $<
#
# Stage 1: Generate *BeanInfo.java files.
#
if [ -s $(TEMPDIR)/.beans.list ]; \
then $(JAVADOC_CMD) $(DOCLETFLAGS) -x $(DEBUG_FLAG) -d $(BEANSRCDIR) -t $(DOCLETSRC)/SwingBeanInfo.template -docletpath $(DOCLETDST) \
fi
$(CP) $< $@
$(CP) $< $@
#
# Compile the generated *BeanInfo.java files.
#
$(FILES_bclass):: $(FILES_beans)
# all the sources are in one directory, so make sure that the list does
# not have the /text direcotry in it. Kludgy, this is...
@$(ECHO) "Deleting classes.list..."
if [ -s $(TEMPDIR)/.classes.list ] ; then \
fi
#
# Packaging
#
-C $(BEANCLASSDIR) javax \
-C $(BEANCLASSDIR) sun \
#
# Cleanliness.
#
#
# Utility.
#
#
# Debugging targets for looking at variables.
#
.PRECIOUS: $(FILES_beans)