118 # the actual command. Filter that out using wildcard before adding to DEPS. 119 DEPS += $(wildcard $(JMOD_CMD)) 120 ifeq ($(EXTERNAL_BUILDJDK), false) 121 DEPS += $(call CacheFind, $(JDK_OUTPUTDIR)/modules/jdk.jlink/jdk/tools/jmod) 122 endif 123 124 # If creating interim versions of jmods, certain files need to be filtered out 125 # to avoid false incremental rebuilds. 126 ifeq ($(INTERIM_JMOD), true) 127 DEPS := $(filter-out $(SUPPORT_OUTPUTDIR)/modules_libs/java.base/classlist, $(DEPS)) 128 endif 129 130 # Create jmods in a temp dir and then move them into place to keep the 131 # module path in $(IMAGES_OUTPUTDIR)/jmods valid at all times. 132 $(JMODS_DIR)/$(MODULE).jmod: $(DEPS) 133 $(call LogWarn, Creating $(patsubst $(OUTPUT_ROOT)/%, %, $@)) 134 $(call MakeDir, $(JMODS_DIR) $(JMODS_TEMPDIR)) 135 $(RM) $@ $(JMODS_TEMPDIR)/$(notdir $@) 136 $(JMOD) create \ 137 --module-version $(VERSION_SHORT) \ 138 --os-name '$(REQUIRED_OS_NAME)' \ 139 --os-arch '$(REQUIRED_OS_ARCH)' \ 140 --module-path $(JMODS_DIR) \ 141 --exclude '**{_the.*,_*.marker,*.diz,*.debuginfo,*.dSYM/**,*.dSYM,*.pdb,*.map}' \ 142 $(JMOD_FLAGS) $(JMODS_TEMPDIR)/$(notdir $@) 143 $(MV) $(JMODS_TEMPDIR)/$(notdir $@) $@ 144 145 TARGETS += $(JMODS_DIR)/$(MODULE).jmod 146 147 ################################################################################ 148 149 all: $(TARGETS) 150 151 ################################################################################ | 118 # the actual command. Filter that out using wildcard before adding to DEPS. 119 DEPS += $(wildcard $(JMOD_CMD)) 120 ifeq ($(EXTERNAL_BUILDJDK), false) 121 DEPS += $(call CacheFind, $(JDK_OUTPUTDIR)/modules/jdk.jlink/jdk/tools/jmod) 122 endif 123 124 # If creating interim versions of jmods, certain files need to be filtered out 125 # to avoid false incremental rebuilds. 126 ifeq ($(INTERIM_JMOD), true) 127 DEPS := $(filter-out $(SUPPORT_OUTPUTDIR)/modules_libs/java.base/classlist, $(DEPS)) 128 endif 129 130 # Create jmods in a temp dir and then move them into place to keep the 131 # module path in $(IMAGES_OUTPUTDIR)/jmods valid at all times. 132 $(JMODS_DIR)/$(MODULE).jmod: $(DEPS) 133 $(call LogWarn, Creating $(patsubst $(OUTPUT_ROOT)/%, %, $@)) 134 $(call MakeDir, $(JMODS_DIR) $(JMODS_TEMPDIR)) 135 $(RM) $@ $(JMODS_TEMPDIR)/$(notdir $@) 136 $(JMOD) create \ 137 --module-version $(VERSION_SHORT) \ 138 --os-name '$(OPENJDK_MODULE_TARGET_OS_NAME)' \ 139 --os-arch '$(OPENJDK_MODULE_TARGET_OS_ARCH)' \ 140 --module-path $(JMODS_DIR) \ 141 --exclude '**{_the.*,_*.marker,*.diz,*.debuginfo,*.dSYM/**,*.dSYM,*.pdb,*.map}' \ 142 $(JMOD_FLAGS) $(JMODS_TEMPDIR)/$(notdir $@) 143 $(MV) $(JMODS_TEMPDIR)/$(notdir $@) $@ 144 145 TARGETS += $(JMODS_DIR)/$(MODULE).jmod 146 147 ################################################################################ 148 149 all: $(TARGETS) 150 151 ################################################################################ |