makefiles/GensrcMisc.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Sdiff makefiles

makefiles/GensrcMisc.gmk

Print this page




   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 


  26 ##########################################################################################
  27 # Install the launcher name, release version string, full version
  28 # string and the runtime name into the Version.java file.
  29 # To be printed by java -version
  30 
  31 $(JDK_OUTPUTDIR)/gensrc/sun/misc/Version.java: \

  32         $(JDK_TOPDIR)/src/share/classes/sun/misc/Version.java.template
  33         $(MKDIR) -p $(@D)
  34         $(RM) $@ $@.tmp
  35         $(ECHO) $(LOG_INFO) Generating sun/misc/Version.java
  36         $(SED) -e 's/@@launcher_name@@/$(LAUNCHER_NAME)/g' \
  37                -e 's/@@java_version@@/$(RELEASE)/g' \
  38                -e 's/@@java_runtime_version@@/$(FULL_VERSION)/g' \
  39                -e 's/@@java_runtime_name@@/$(RUNTIME_NAME)/g' \

  40             $< > $@.tmp
  41         $(MV) $@.tmp $@
  42 
  43 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/misc/Version.java

  44 
  45 ##########################################################################################
  46 # Version file for jconsole
  47 
  48 $(JDK_OUTPUTDIR)/gensrc/sun/tools/jconsole/Version.java: \
  49                 $(JDK_TOPDIR)/src/share/classes/sun/tools/jconsole/Version.java.template
  50         $(MKDIR) -p $(@D)
  51         $(RM) $@ $@.tmp
  52         $(ECHO) $(LOG_INFO) Generating sun/tools/jconsole/Version.java
  53         $(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@.tmp
  54         $(MV) $@.tmp $@
  55 
  56 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/tools/jconsole/Version.java
  57 
  58 ##########################################################################################
  59 
  60 ifeq ($(OPENJDK_TARGET_OS_API),posix)
  61     UPSUFFIX:=$(OPENJDK_TARGET_OS)
  62     ifeq ($(OPENJDK_TARGET_OS),macosx)
  63         UPSUFFIX:=bsd




   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include ProfileNames.gmk
  27 
  28 ##########################################################################################
  29 # Install the launcher name, release version string, full version
  30 # string and the runtime name into the Version.java file.
  31 # To be printed by java -version
  32 
  33 $(JDK_OUTPUTDIR)/gensrc/sun/misc/Version.java \
  34 $(PROFILE_VERSION_JAVA_TARGETS): \
  35                 $(JDK_TOPDIR)/src/share/classes/sun/misc/Version.java.template
  36         $(MKDIR) -p $(@D)
  37         $(RM) $@ $@.tmp
  38         $(ECHO) Generating sun/misc/Version.java $(call profile_version_name, $@)
  39         $(SED) -e 's/@@launcher_name@@/$(LAUNCHER_NAME)/g' \
  40                -e 's/@@java_version@@/$(RELEASE)/g' \
  41                -e 's/@@java_runtime_version@@/$(FULL_VERSION)/g' \
  42                -e 's/@@java_runtime_name@@/$(RUNTIME_NAME)/g' \
  43                -e 's/@@java_profile_name@@/$(call profile_version_name, $@)/g' \
  44             $< > $@.tmp
  45         $(MV) $@.tmp $@
  46 
  47 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/misc/Version.java \
  48     $(PROFILE_VERSION_JAVA_TARGETS)
  49 
  50 ##########################################################################################
  51 # Version file for jconsole
  52 
  53 $(JDK_OUTPUTDIR)/gensrc/sun/tools/jconsole/Version.java: \
  54                 $(JDK_TOPDIR)/src/share/classes/sun/tools/jconsole/Version.java.template
  55         $(MKDIR) -p $(@D)
  56         $(RM) $@ $@.tmp
  57         $(ECHO) $(LOG_INFO) Generating sun/tools/jconsole/Version.java
  58         $(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@.tmp
  59         $(MV) $@.tmp $@
  60 
  61 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/tools/jconsole/Version.java
  62 
  63 ##########################################################################################
  64 
  65 ifeq ($(OPENJDK_TARGET_OS_API),posix)
  66     UPSUFFIX:=$(OPENJDK_TARGET_OS)
  67     ifeq ($(OPENJDK_TARGET_OS),macosx)
  68         UPSUFFIX:=bsd


makefiles/GensrcMisc.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File