Makefile revision 2362
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# This code is free software; you can redistribute it and/or modify it
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# under the terms of the GNU General Public License version 2 only, as
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# published by the Free Software Foundation. Oracle designates this
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# particular file as subject to the "Classpath" exception as provided
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# by Oracle in the LICENSE file that accompanied this code.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# version 2 for more details (a copy is included in the LICENSE file that
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# accompanied this code).
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# You should have received a copy of the GNU General Public License version
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# 2 along with this work; if not, write to the Free Software Foundation,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# or visit www.oracle.com if you need additional information or have any
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# questions.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Makefile for building javazic utility & TimeZone resource files
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBUILDDIR = ../..
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncMODULE = base
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncPACKAGE = sun.javazic
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncPRODUCT = sun
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncinclude $(BUILDDIR)/common/Defs.gmk
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Time zone data file creation
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncTZDATA = ./tzdata/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncTZDATA_VER = `$(GREP) '^tzdata' $(TZDATA)VERSION`
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncTZFILE = \
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync africa antarctica asia australasia europe northamerica \
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync pacificnew southamerica backward \
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync etcetera solar87 solar88 solar89 systemv
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncJDKTZDATA = ./tzdata_jdk/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncJDKTZFILES = gmt jdk11_backward
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncTZFILES = \
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(addprefix $(TZDATA),$(TZFILE)) \
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(addprefix $(JDKTZDATA),$(JDKTZFILES))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncWORKDIR = $(TEMPDIR)/zi
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncINSTALLDIR = $(LIBDIR)/zi
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncMAPFILE = ZoneInfoMappings
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Rules
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncinclude $(BUILDDIR)/common/Classes.gmk
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# Add to the build rule
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncbuild: $(INSTALLDIR)/$(MAPFILE)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync$(BUILDTOOLJARDIR)/javazic.jar:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync ($(CD) $(BUILDDIR)/tools/javazic && $(MAKE))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync$(WORKDIR)/$(MAPFILE): $(BUILDTOOLJARDIR)/javazic.jar $(TZFILES)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(RM) -r $(@D)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(prep-target)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(BOOT_JAVA_CMD) -jar $(BUILDTOOLJARDIR)/javazic.jar -V "$(TZDATA_VER)" -d $(WORKDIR) $(TZFILES)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync @$(java-vm-cleanup)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync$(INSTALLDIR)/$(MAPFILE): $(WORKDIR)/$(MAPFILE)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(RM) -r $(@D)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(prep-target)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(CP) -r $(WORKDIR)/* $(@D)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(install-module-dir)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncclean clobber::
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync $(RM) -r $(TEMPDIR) $(INSTALLDIR)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync