jdk/makefiles/Import.gmk
changeset 15691 0f039e7fe863
parent 15680 d379c4f7bb47
parent 15677 e0ab6fb02225
child 17957 1a51992c6097
equal deleted inserted replaced
15690:5e6c9c2f13e0 15691:0f039e7fe863
    98 
    98 
    99 IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES)
    99 IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES)
   100 
   100 
   101 #######
   101 #######
   102 
   102 
   103 ifeq ($(OPENJDK_TARGET_OS),solaris)
       
   104 define do-install-file
       
   105 	$(MKDIR) -p '$$(@D)'
       
   106 	$(RM) '$$@'
       
   107 	$(CP) -r -P '$$<' '$$(@D)'
       
   108 endef
       
   109 else ifeq ($(OPENJDK_TARGET_OS),macosx)
       
   110 define do-install-file
       
   111 	$(MKDIR) -p '$$(@D)'
       
   112 	$(RM) '$$@'
       
   113 	$(CP) -pRP '$$<' '$$@'
       
   114 endef
       
   115 else
       
   116 define do-install-file
       
   117 	$(MKDIR) -p '$$(@D)'
       
   118 	$(RM) '$$@'
       
   119 	$(CP) -P '$$<' '$$@'
       
   120 endef
       
   121 endif
       
   122 
       
   123 define CopyDir
   103 define CopyDir
   124         $1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE),$4) \))
   104         $1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE),$4) \))
   125         $1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES))
   105         $1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES))
   126         IMPORT_TARGET_FILES += $$($1_DST_FILES)
   106         IMPORT_TARGET_FILES += $$($1_DST_FILES)
   127 $3/% : $2/%
   107 $3/% : $2/%
   128 	$(ECHO) $(LOG_INFO) Copying $$(@F)
   108 	$(ECHO) $(LOG_INFO) Copying $$(@F)
   129 	$(do-install-file)
   109 	$$(install-file)
   130 endef
   110 endef
   131 
   111 
   132 #######
   112 #######
   133 
   113 
   134 #
   114 #
   220 	$(RM) $(basename $@).debuginfo
   200 	$(RM) $(basename $@).debuginfo
   221 	$(MV) $@.tmp $@
   201 	$(MV) $@.tmp $@
   222 
   202 
   223 #######
   203 #######
   224 
   204 
   225 ifeq ($(OPENJDK_TARGET_OS),solaris)
       
   226 define install-file
       
   227 	$(MKDIR) -p '$(@D)'
       
   228 	$(RM) '$@'
       
   229 	$(CP) -r -P '$<' '$(@D)'
       
   230 endef
       
   231 else ifeq ($(OPENJDK_TARGET_OS),macosx)
       
   232 define install-file
       
   233 	$(MKDIR) -p '$(@D)'
       
   234 	$(RM) '$@'
       
   235 	$(CP) -pRP '$<' '$@'
       
   236 endef
       
   237 else
       
   238 define install-file
       
   239 	$(MKDIR) -p '$(@D)'
       
   240 	$(RM) '$@'
       
   241 	$(CP) -P '$<' '$@'
       
   242 endef
       
   243 endif
       
   244 
       
   245 #######
       
   246 
       
   247 all: $(IMPORT_TARGET_FILES)
   205 all: $(IMPORT_TARGET_FILES)