521 |
520 |
522 ################################################################################ |
521 ################################################################################ |
523 # /db dir |
522 # /db dir |
524 |
523 |
525 ifndef OPENJDK |
524 ifndef OPENJDK |
526 $(IMAGES_OUTPUTDIR)/_unzip/%.unzipped: $(JDK_TOPDIR)/src/closed/share/db/% |
525 DB_ZIP_DIR := $(wildcard $(JDK_TOPDIR)/src/closed/db) |
|
526 |
|
527 $(IMAGES_OUTPUTDIR)/_unzip/%.unzipped: $(DB_ZIP_DIR)/% |
527 $(ECHO) Unzipping $(patsubst $(SRC_ROOT)/%,%,$<) |
528 $(ECHO) Unzipping $(patsubst $(SRC_ROOT)/%,%,$<) |
|
529 $(RM) -r $(JDK_IMAGE_DIR)/db |
528 $(MKDIR) -p $(JDK_IMAGE_DIR)/db |
530 $(MKDIR) -p $(JDK_IMAGE_DIR)/db |
529 cd $(JDK_IMAGE_DIR)/db && $(UNZIP) -q -o $< -x */index.html */KEYS */test/* *javadoc/* */docs/* */demo/* 2> /dev/null |
531 cd $(JDK_IMAGE_DIR)/db && $(UNZIP) -q -o $< -x */index.html */KEYS */test/* *javadoc/* */docs/* */demo/* 2> /dev/null |
530 cd $(JDK_IMAGE_DIR)/db && $(MV) db-derby-*-bin/* . && $(RM) -r db-derby-*-bin |
532 cd $(JDK_IMAGE_DIR)/db && $(MV) db-derby-*-bin/* . && $(RM) -r db-derby-*-bin |
531 $(MKDIR) -p $(@D) |
533 $(MKDIR) -p $(@D) |
532 $(TOUCH) $@ |
534 $(TOUCH) $@ |
533 |
535 |
534 $(JDK_IMAGE_DIR)/db/README-JDK.html: $(JDK_TOPDIR)/src/closed/share/db/README-JDK.html |
536 $(JDK_IMAGE_DIR)/db/README-JDK.html: $(DB_ZIP_DIR)/README-JDK.html |
535 $(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)' |
537 $(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)' |
536 $(MKDIR) -p $(@D) |
538 $(MKDIR) -p $(@D) |
537 $(CAT) $< | $(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > $@ |
539 $(CAT) $< | $(SED) "s/XXXX/$(shell cat $(DB_ZIP_DIR)/COPYRIGHTYEAR)/" > $@ |
538 |
540 |
539 $(JDK_IMAGE_DIR)/db/3RDPARTY: $(JDK_TOPDIR)/src/closed/share/db/3RDPARTY |
541 $(JDK_IMAGE_DIR)/db/3RDPARTY: $(DB_ZIP_DIR)/3RDPARTY |
540 $(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)' |
542 $(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)' |
541 $(MKDIR) -p $(@D) |
543 $(MKDIR) -p $(@D) |
542 $(CAT) $< | $(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > $@ |
544 $(CAT) $< | $(SED) "s/XXXX/$(shell cat $(DB_ZIP_DIR)/COPYRIGHTYEAR)/" > $@ |
543 |
545 |
544 JDK_DB_TARGETS := $(patsubst $(JDK_TOPDIR)/src/closed/share/db/%, $(IMAGES_OUTPUTDIR)/_unzip/%.unzipped, \ |
546 JDK_DB_TARGETS := $(patsubst $(DB_ZIP_DIR)/%, $(IMAGES_OUTPUTDIR)/_unzip/%.unzipped, \ |
545 $(wildcard $(JDK_TOPDIR)/src/closed/share/db/*.zip)) \ |
547 $(wildcard $(DB_ZIP_DIR)/*.zip)) \ |
546 $(JDK_IMAGE_DIR)/db/README-JDK.html $(JDK_IMAGE_DIR)/db/3RDPARTY |
548 $(JDK_IMAGE_DIR)/db/README-JDK.html $(JDK_IMAGE_DIR)/db/3RDPARTY |
547 |
549 |
548 endif |
550 endif |
549 |
551 |
550 ################################################################################ |
552 ################################################################################ |
568 JRE_DOC_FILES += README.txt |
570 JRE_DOC_FILES += README.txt |
569 else |
571 else |
570 JRE_DOC_FILES += README |
572 JRE_DOC_FILES += README |
571 endif |
573 endif |
572 JDK_DOC_FILES += demo/DEMOS_LICENSE sample/SAMPLES_LICENSE |
574 JDK_DOC_FILES += demo/DEMOS_LICENSE sample/SAMPLES_LICENSE |
573 JRE_DOC_LOCATION := $(JDK_TOPDIR)/src/closed/share/doc/jre |
575 JRE_DOC_LOCATION := $(JDK_TOPDIR)/src/closed/doc/jre |
574 JDK_DOC_LOCATION := $(JDK_TOPDIR)/src/closed/share/doc/jdk |
576 JDK_DOC_LOCATION := $(JDK_TOPDIR)/src/closed/doc/jdk |
575 endif |
577 endif |
576 JRE_DOC_TARGETS := $(addprefix $(JRE_IMAGE_DIR)/, $(JRE_DOC_FILES)) |
578 JRE_DOC_TARGETS := $(addprefix $(JRE_IMAGE_DIR)/, $(JRE_DOC_FILES)) |
577 JDKJRE_DOC_TARGETS := $(addprefix $(JDK_IMAGE_DIR)/jre/, $(JRE_DOC_FILES)) |
579 JDKJRE_DOC_TARGETS := $(addprefix $(JDK_IMAGE_DIR)/jre/, $(JRE_DOC_FILES)) |
578 JDK_DOC_TARGETS := $(addprefix $(JDK_IMAGE_DIR)/, $(JDK_DOC_FILES)) |
580 JDK_DOC_TARGETS := $(addprefix $(JDK_IMAGE_DIR)/, $(JDK_DOC_FILES)) |
579 |
581 |