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