Makefile revision 137
1923N/A#
1923N/A# Copyright 2001-2006 Sun Microsystems, Inc. All Rights Reserved.
1923N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1923N/A#
1923N/A# This code is free software; you can redistribute it and/or modify it
1923N/A# under the terms of the GNU General Public License version 2 only, as
1923N/A# published by the Free Software Foundation. Sun designates this
1923N/A# particular file as subject to the "Classpath" exception as provided
1923N/A# by Sun in the LICENSE file that accompanied this code.
1923N/A#
1923N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1923N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1923N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1923N/A# version 2 for more details (a copy is included in the LICENSE file that
1923N/A# accompanied this code).
1923N/A#
1923N/A# You should have received a copy of the GNU General Public License version
1923N/A# 2 along with this work; if not, write to the Free Software Foundation,
1923N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1923N/A#
1923N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1923N/A# CA 95054 USA or visit www.sun.com if you need additional information or
3661N/A# have any questions.
1923N/A#
1923N/A
1923N/A#
1923N/A# Makefile for locale data.
1923N/A#
1923N/A
1923N/ABUILDDIR = ../..
1923N/A
1923N/APACKAGE = sun.text
1923N/APRODUCT = sun
1923N/A
1923N/Ainclude $(BUILDDIR)/common/Defs.gmk
1923N/A
1923N/A# Re-direct classes to another location (we are building localedata.jar)
3661N/ACLASSDESTDIR = $(TEMPDIR)/classes
3661N/A
1923N/A#
1923N/A# Files
1923N/A#
1923N/Ainclude FILES_java.gmk
1923N/Ainclude FILES_properties.gmk
1923N/A
1923N/A#
1923N/A# Compile the properties files
1923N/A#
1923N/ACOMPILED_PROPERTIES_SUPERCLASS=LocaleNamesBundle
1923N/A
1923N/A#
1923N/A# Rules
1923N/A#
1923N/Ainclude $(BUILDDIR)/common/Classes.gmk
1923N/A
1923N/A#
1923N/A# Rules to add data files BreakIterator (for th locale)
1923N/A#
1923N/ATEXT_CLASSES = $(BUILDTOOLCLASSDIR)/sun.text/classes
1923N/A
1923N/A# input
1923N/A#
1923N/A# Notes: sun.text.resources.BreakIteratorRules_th no longer goes to runtime.
1923N/A# They are used at JDK build phase in order to create $(BIFILES) which
1923N/A# are used on runtime instead.
1923N/A#
1923N/ATEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources
1923N/ABIRULES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
1923N/A $(TEXT_SRCDIR)/BreakIteratorRules_th.java
1923N/ABIINFO = $(TEXT_SRCDIR)/BreakIteratorInfo_th.java
1923N/AUNICODEDATA = $(BUILDDIR)/tools/UnicodeData
1923N/A
1923N/A# output
1923N/ABIFILES = $(CLASSDESTDIR)/sun/text/resources/WordBreakIteratorData_th \
1923N/A $(CLASSDESTDIR)/sun/text/resources/LineBreakIteratorData_th
# builder
GENERATEBREAKITERATORDATA_JARFILE = \
$(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
$(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) $(BIRULES) $(BIINFO) \
$(UNICODEDATA)/UnicodeData.txt
$(prep-target)
$(MKDIR) -p $(TEXT_CLASSES)
$(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
-sourcepath $(TEXT_SRCDIR) \
$(BIRULES) $(BIINFO)
$(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
-jar $(GENERATEBREAKITERATORDATA_JARFILE) \
-o $(CLASSDESTDIR)/sun/text/resources \
-spec $(UNICODEDATA)/UnicodeData.txt \
-language th
@$(java-vm-cleanup)
clean::
$(RM) -r $(TEXT_CLASSES)
$(RM) -r $(BIFILES)
#
# End of rules to add data files for BreakIterator
#
#
# Extra rules to build locale data.
#
LOCALEDATA_JAR = $(EXTDIR)/localedata.jar
SPECIALFILES = $(CLASSDESTDIR)/sun/text/resources/thai_dict
$(CLASSDESTDIR)/sun/text/resources/% : $(TEXT_SRCDIR)/%
$(install-file)
$(LOCALEDATA_JAR): $(EXTDIR) $(FILES_class) $(BIFILES) $(SPECIALFILES)
$(prep-target)
$(BOOT_JAR_CMD) -cf $@ -C $(CLASSDESTDIR) sun \
$(JAR_JFLAGS)
@$(java-vm-cleanup)
build: $(LOCALEDATA_JAR)
clean clobber::
$(RM) -r $(CLASSDESTDIR)
$(RM) $(LOCALEDATA_JAR)