jdk/makefiles/CopySamples.gmk
changeset 12892 3ef14bab6254
parent 12317 9670c1610c53
child 13164 72c5d01a857d
equal deleted inserted replaced
12891:5dbaa8f0f72e 12892:3ef14bab6254
    44     SAMPLE_CLOSED_SOURCE := $(shell $(FIND) $(SAMPLE_CLOSED_SOURCE_DIR) -type f -print | $(GREP) -v EbayClient/Main.java)
    44     SAMPLE_CLOSED_SOURCE := $(shell $(FIND) $(SAMPLE_CLOSED_SOURCE_DIR) -type f -print | $(GREP) -v EbayClient/Main.java)
    45     SAMPLE_CLOSED_TARGET := $(subst $(SAMPLE_CLOSED_SOURCE_DIR),$(SAMPLE_TARGET_DIR),$(SAMPLE_CLOSED_SOURCE))
    45     SAMPLE_CLOSED_TARGET := $(subst $(SAMPLE_CLOSED_SOURCE_DIR),$(SAMPLE_TARGET_DIR),$(SAMPLE_CLOSED_SOURCE))
    46     SAMPLE_TARGET += $(SAMPLE_CLOSED_TARGET)
    46     SAMPLE_TARGET += $(SAMPLE_CLOSED_TARGET)
    47 endif
    47 endif
    48 
    48 
    49 ifeq ($(PLATFORM),solaris)
    49 ifneq (, $(filter $(PLATFORM), solaris macosx))
    50     SAMPLE_SOLARIS_SOURCE := $(shell $(FIND) $(SAMPLE_SOLARIS_SOURCE_DIR) -type f -print)
    50     SAMPLE_SOLARIS_SOURCE := $(shell $(FIND) $(SAMPLE_SOLARIS_SOURCE_DIR) -type f -print)
    51     SAMPLE_SOLARIS_TARGET := $(subst $(SAMPLE_SOLARIS_SOURCE_DIR),$(SAMPLE_TARGET_DIR),$(SAMPLE_SOLARIS_SOURCE))
    51     SAMPLE_SOLARIS_TARGET := $(subst $(SAMPLE_SOLARIS_SOURCE_DIR),$(SAMPLE_TARGET_DIR),$(SAMPLE_SOLARIS_SOURCE))
    52     SAMPLE_TARGET += $(SAMPLE_SOLARIS_TARGET)
    52     SAMPLE_TARGET += $(SAMPLE_SOLARIS_TARGET)
    53 endif
    53 endif
    54 
    54 
    55 $(SAMPLE_TARGET_DIR)/dtrace/%: $(SAMPLE_SOLARIS_SOURCE_DIR)/dtrace/%
    55 $(SAMPLE_TARGET_DIR)/dtrace/%: $(SAMPLE_SOLARIS_SOURCE_DIR)/dtrace/%
    56 	$(MKDIR) -p $(@D)
    56 	$(MKDIR) -p $(@D)
    57 	rm -f $@
    57 	$(RM) -f $@
    58 	$(CP) $< $@
    58 	$(CP) $< $@
    59 
    59 
    60 $(SAMPLE_TARGET_DIR)/webservices/%: $(SAMPLE_CLOSED_SOURCE_DIR)/webservices/%
    60 $(SAMPLE_TARGET_DIR)/webservices/%: $(SAMPLE_CLOSED_SOURCE_DIR)/webservices/%
    61 	$(MKDIR) -p $(@D)
    61 	$(MKDIR) -p $(@D)
    62 	rm -f $@
    62 	$(RM) -f $@
    63 	$(CP) $< $@
    63 	$(CP) $< $@
    64 
    64 
    65 $(SAMPLE_TARGET_DIR)/%: $(SAMPLE_SOURCE_DIR)/%
    65 $(SAMPLE_TARGET_DIR)/%: $(SAMPLE_SOURCE_DIR)/%
    66 	$(MKDIR) -p $(@D)
    66 	$(MKDIR) -p $(@D)
    67 	rm -f $@
    67 	$(RM) -f $@
    68 	$(CP) $< $@
    68 	$(CP) $< $@
    69 
    69 
    70 COPY_FILES += $(SAMPLE_TARGET)
    70 COPY_FILES += $(SAMPLE_TARGET)
    71 
    71 
    72 all: $(COPY_FILES) 
    72 all: $(COPY_FILES)