Makefile revision 2080
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard#
19d8729755d7f4d9503029a628dacbbdabcd2264wrowe# Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard#
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# This code is free software; you can redistribute it and/or modify it
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# under the terms of the GNU General Public License version 2 only, as
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# published by the Free Software Foundation. Sun designates this
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# particular file as subject to the "Classpath" exception as provided
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# by Sun in the LICENSE file that accompanied this code.
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard#
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# This code is distributed in the hope that it will be useful, but WITHOUT
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# version 2 for more details (a copy is included in the LICENSE file that
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# accompanied this code).
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard#
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# You should have received a copy of the GNU General Public License version
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# 2 along with this work; if not, write to the Free Software Foundation,
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5a4b3207b395b426c5a9066f4afea8d3fa8c6660stoddard#
5a4b3207b395b426c5a9066f4afea8d3fa8c6660stoddard# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# CA 95054 USA or visit www.sun.com if you need additional information or
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# have any questions.
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard#
19d8729755d7f4d9503029a628dacbbdabcd2264wrowe
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# Makefile for building javazic utility & TimeZone resource files
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardBUILDDIR = ../..
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardMODULE = base
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardPACKAGE = sun.javazic
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardPRODUCT = sun
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardinclude $(BUILDDIR)/common/Defs.gmk
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# Time zone data file creation
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardTZDATA = ./tzdata/
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardTZDATA_VER = `$(GREP) '^tzdata' $(TZDATA)VERSION`
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardTZFILE = \
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard africa antarctica asia australasia europe northamerica \
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard pacificnew southamerica backward \
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard etcetera solar87 solar88 solar89 systemv
1f2f357528d122de2c7886a073b4eee8766d5c95wroweJDKTZDATA = ./tzdata_jdk/
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardJDKTZFILES = gmt jdk11_backward
bb65aeae7af1d33b64252bbc1b966942d757ac60wroweTZFILES = \
56e85d89d42a6980f31b800266649efbed338da3wrowe $(addprefix $(TZDATA),$(TZFILE)) \
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard $(addprefix $(JDKTZDATA),$(JDKTZFILES))
8c8173f49dd7122e10636b3d20ae841551bd0b43wrowe
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardWORKDIR = $(TEMPDIR)/zi
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardINSTALLDIR = $(LIBDIR)/zi
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardMAPFILE = ZoneInfoMappings
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
5ac28f3fe2417368757f29cf381338357605fd52wrowe#
5ac28f3fe2417368757f29cf381338357605fd52wrowe# Rules
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard#
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardinclude $(BUILDDIR)/common/Classes.gmk
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard# Add to the build rule
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardbuild: $(INSTALLDIR)/$(MAPFILE)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard$(BUILDTOOLJARDIR)/javazic.jar:
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard ($(CD) $(BUILDDIR)/tools/javazic && $(MAKE))
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard$(WORKDIR)/$(MAPFILE): $(BUILDTOOLJARDIR)/javazic.jar $(TZFILES)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard $(RM) -r $(@D)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard $(prep-target)
1f2f357528d122de2c7886a073b4eee8766d5c95wrowe $(BOOT_JAVA_CMD) -jar $(BUILDTOOLJARDIR)/javazic.jar -V "$(TZDATA_VER)" -d $(WORKDIR) $(TZFILES)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard @$(java-vm-cleanup)
5ac28f3fe2417368757f29cf381338357605fd52wrowe
e1ad80c048e29e968221817698529d73098f07a4wrowe$(INSTALLDIR)/$(MAPFILE): $(WORKDIR)/$(MAPFILE)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard $(RM) -r $(@D)
8c8173f49dd7122e10636b3d20ae841551bd0b43wrowe $(prep-target)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard $(CP) -r $(WORKDIR)/* $(@D)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard $(install-module-dir)
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddard
96d86960482354ffa1c192ea3df73a4cd46f0d82stoddardclean clobber::
5ac28f3fe2417368757f29cf381338357605fd52wrowe $(RM) -r $(TEMPDIR) $(INSTALLDIR)
5ac28f3fe2417368757f29cf381338357605fd52wrowe