make/common/Release.gmk

Print this page




 153         jmap.1             \
 154         jps.1              \
 155         jrunscript.1       \
 156         jsadebugd.1        \
 157         jstack.1           \
 158         jstat.1            \
 159         jstatd.1           \
 160         native2ascii.1     \
 161         rmic.1             \
 162         schemagen.1        \
 163         serialver.1        \
 164         wsgen.1            \
 165         wsimport.1         \
 166         xjc.1
 167 
 168 ifndef OPENJDK
 169   JDK_MAN_PAGES += jvisualvm.1
 170 endif
 171 
 172 ifeq ($(PLATFORM), solaris)
 173   ifndef OPENJDK
 174     MANBASEDIRS=$(CLOSED_SRC)/solaris/doc $(IMPORTDOCDIR)
 175   else
 176     MANBASEDIRS=$(JDK_TOPDIR)/src/solaris/doc $(IMPORTDOCDIR)
 177   endif
 178   MAN1SUBDIR=sun/man/man1
 179 endif # solaris
 180 
 181 ifeq ($(PLATFORM), linux)
 182   ifndef OPENJDK
 183     MANBASEDIRS=$(CLOSED_SRC)/linux/doc $(IMPORTDOCDIR)
 184   else
 185     MANBASEDIRS=$(JDK_TOPDIR)/src/linux/doc $(IMPORTDOCDIR)
 186   endif
 187   MAN1SUBDIR=man
 188   JA_DIRNAME=ja_JP.UTF-8
 189 endif # linux
 190 
 191 define copy-man-pages
 192 $(MKDIR) -p $1/man/man1
 193 for manbase in $(MANBASEDIRS:%=%/$(MAN1SUBDIR)) ; do \
 194   for manpage in $2; do \
 195     if [ -f $${manbase}/$${manpage} ] ; then \
 196       $(CP) $${manbase}/$${manpage} $1/man/man1 ; \
 197       for ja_encoding in $(JA_TARGET_ENCODINGS); do \
 198         ja_dir="ja"; \
 199         if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \
 200           ja_dir="ja_JP.$${ja_encoding}"; \
 201         fi; \
 202         $(MKDIR) -p $1/man/$${ja_dir}/man1; \
 203         $(CAT) $${manbase}/ja/$${manpage} \
 204           | $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \
 205           | $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \
 206           | $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \


1222         done
1223         $(RM) $(JDK_BIN_LIST)
1224 
1225 ###################################################################
1226 # What did we build
1227 ###################################################################
1228 
1229 # The jdk text info file that lives at the root of the install image.
1230 
1231 JDK_INFO_FILE = $(JDK_IMAGE_DIR)/release
1232 JRE_INFO_FILE = $(JRE_IMAGE_DIR)/release
1233 
1234 # Common way to emit a line into the release or info file
1235 define info-file-item # name value
1236 $(PRINTF) '%s="%s"\n' $1 $2 >> $@
1237 endef
1238 
1239 define echo-java-info
1240 $(CAT) $1
1241 endef
1242 -include $(JDK_TOPDIR)/make/closed/common/release.gmk
1243 
1244 # Values to emit
1245 MINIMUM_OS_NAME    := $(REQUIRED_OS_NAME)
1246 MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION)
1247 MINIMUM_OS_ARCH    := $(ARCH)
1248 ALL_SOURCE_TIPS     = $(shell \
1249   if [ -f $(SOURCE_TIPS) ] ; then \
1250     $(CAT) $(SOURCE_TIPS) ; \
1251   fi)
1252 
1253 $(JDK_INFO_FILE): FRC
1254         $(prep-target)
1255         $(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)")
1256         $(call info-file-item, "OS_NAME",      "$(MINIMUM_OS_NAME)")
1257         $(call info-file-item, "OS_VERSION",   "$(MINIMUM_OS_VERSION)")
1258         $(call info-file-item, "OS_ARCH",      "$(MINIMUM_OS_ARCH)")
1259         $(call info-file-item, "SOURCE",       "$(ALL_SOURCE_TIPS)")
1260         $(call echo-java-info, $@)
1261 
1262 # Create release file to identify this image


1419         @$(java-vm-cleanup)
1420 
1421 .PHONY: images image-jre image-jdk \
1422         initial-image-jre initial-image-jdk \
1423         initial-image-jre-sol64 initial-image-jdk-sol64 \
1424         initial-image-jdk-setup \
1425         initial-image-jdk-db \
1426         initial-image-jdk64-bindemos \
1427         initial-image-jre-setup \
1428         trim-image-jre trim-image-jdk \
1429         process-image-jre process-image-jdk \
1430         identify-image-jre identify-image-jdk \
1431         install-previous-jre install-previous-jdk \
1432         compare-image-jre compare-image-jdk \
1433         compare-image compare-image-clobber \
1434         images-clobber
1435 
1436 # Force rule
1437 FRC:
1438 



 153         jmap.1             \
 154         jps.1              \
 155         jrunscript.1       \
 156         jsadebugd.1        \
 157         jstack.1           \
 158         jstat.1            \
 159         jstatd.1           \
 160         native2ascii.1     \
 161         rmic.1             \
 162         schemagen.1        \
 163         serialver.1        \
 164         wsgen.1            \
 165         wsimport.1         \
 166         xjc.1
 167 
 168 ifndef OPENJDK
 169   JDK_MAN_PAGES += jvisualvm.1
 170 endif
 171 
 172 ifeq ($(PLATFORM), solaris)



 173   MANBASEDIRS=$(JDK_TOPDIR)/src/solaris/doc $(IMPORTDOCDIR)

 174   MAN1SUBDIR=sun/man/man1
 175 endif # solaris
 176 
 177 ifeq ($(PLATFORM), linux)



 178   MANBASEDIRS=$(JDK_TOPDIR)/src/linux/doc $(IMPORTDOCDIR)

 179   MAN1SUBDIR=man
 180   JA_DIRNAME=ja_JP.UTF-8
 181 endif # linux
 182 
 183 define copy-man-pages
 184 $(MKDIR) -p $1/man/man1
 185 for manbase in $(MANBASEDIRS:%=%/$(MAN1SUBDIR)) ; do \
 186   for manpage in $2; do \
 187     if [ -f $${manbase}/$${manpage} ] ; then \
 188       $(CP) $${manbase}/$${manpage} $1/man/man1 ; \
 189       for ja_encoding in $(JA_TARGET_ENCODINGS); do \
 190         ja_dir="ja"; \
 191         if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \
 192           ja_dir="ja_JP.$${ja_encoding}"; \
 193         fi; \
 194         $(MKDIR) -p $1/man/$${ja_dir}/man1; \
 195         $(CAT) $${manbase}/ja/$${manpage} \
 196           | $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \
 197           | $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \
 198           | $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \


1214         done
1215         $(RM) $(JDK_BIN_LIST)
1216 
1217 ###################################################################
1218 # What did we build
1219 ###################################################################
1220 
1221 # The jdk text info file that lives at the root of the install image.
1222 
1223 JDK_INFO_FILE = $(JDK_IMAGE_DIR)/release
1224 JRE_INFO_FILE = $(JRE_IMAGE_DIR)/release
1225 
1226 # Common way to emit a line into the release or info file
1227 define info-file-item # name value
1228 $(PRINTF) '%s="%s"\n' $1 $2 >> $@
1229 endef
1230 
1231 define echo-java-info
1232 $(CAT) $1
1233 endef

1234 
1235 # Values to emit
1236 MINIMUM_OS_NAME    := $(REQUIRED_OS_NAME)
1237 MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION)
1238 MINIMUM_OS_ARCH    := $(ARCH)
1239 ALL_SOURCE_TIPS     = $(shell \
1240   if [ -f $(SOURCE_TIPS) ] ; then \
1241     $(CAT) $(SOURCE_TIPS) ; \
1242   fi)
1243 
1244 $(JDK_INFO_FILE): FRC
1245         $(prep-target)
1246         $(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)")
1247         $(call info-file-item, "OS_NAME",      "$(MINIMUM_OS_NAME)")
1248         $(call info-file-item, "OS_VERSION",   "$(MINIMUM_OS_VERSION)")
1249         $(call info-file-item, "OS_ARCH",      "$(MINIMUM_OS_ARCH)")
1250         $(call info-file-item, "SOURCE",       "$(ALL_SOURCE_TIPS)")
1251         $(call echo-java-info, $@)
1252 
1253 # Create release file to identify this image


1410         @$(java-vm-cleanup)
1411 
1412 .PHONY: images image-jre image-jdk \
1413         initial-image-jre initial-image-jdk \
1414         initial-image-jre-sol64 initial-image-jdk-sol64 \
1415         initial-image-jdk-setup \
1416         initial-image-jdk-db \
1417         initial-image-jdk64-bindemos \
1418         initial-image-jre-setup \
1419         trim-image-jre trim-image-jdk \
1420         process-image-jre process-image-jdk \
1421         identify-image-jre identify-image-jdk \
1422         install-previous-jre install-previous-jdk \
1423         compare-image-jre compare-image-jdk \
1424         compare-image compare-image-clobber \
1425         images-clobber
1426 
1427 # Force rule
1428 FRC:
1429 
1430 -include $(JDK_TOPDIR)/make/closed/common/release.gmk