SwingBeans.gmk revision 1244
#
# Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved.
# 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. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.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 is 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 LOCAL_JAVADOC 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 $(LOCAL_JAVADOC) $(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)