jdk/makefiles/CopySamples.gmk
changeset 20547 453837141fac
parent 16636 1cc691bcfe50
equal deleted inserted replaced
20546:5e40a295cce2 20547:453837141fac
    39 SAMPLE_SOURCE := $(shell $(FIND) $(SAMPLE_SOURCE_DIR) $(SAMPLE_FIND_FILTER) -type f -print)
    39 SAMPLE_SOURCE := $(shell $(FIND) $(SAMPLE_SOURCE_DIR) $(SAMPLE_FIND_FILTER) -type f -print)
    40 SAMPLE_TARGET := $(subst $(SAMPLE_SOURCE_DIR),$(SAMPLE_TARGET_DIR),$(SAMPLE_SOURCE))
    40 SAMPLE_TARGET := $(subst $(SAMPLE_SOURCE_DIR),$(SAMPLE_TARGET_DIR),$(SAMPLE_SOURCE))
    41 
    41 
    42 ifndef OPENJDK
    42 ifndef OPENJDK
    43 # Exclude Main.java in EbayClient dir
    43 # Exclude Main.java in EbayClient dir
    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 ifneq (, $(filter $(OPENJDK_TARGET_OS), solaris macosx))
    49 ifneq (, $(filter $(OPENJDK_TARGET_OS), 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 	$(call install-file)
    56 	$(call install-file)
    57 
    57 
    61 $(SAMPLE_TARGET_DIR)/%: $(SAMPLE_SOURCE_DIR)/%
    61 $(SAMPLE_TARGET_DIR)/%: $(SAMPLE_SOURCE_DIR)/%
    62 	$(call install-file)
    62 	$(call install-file)
    63 
    63 
    64 COPY_FILES += $(SAMPLE_TARGET)
    64 COPY_FILES += $(SAMPLE_TARGET)
    65 
    65 
    66 all: $(COPY_FILES) 
    66 all: $(COPY_FILES)
    67 
    67 
    68 .PHONY: all
    68 .PHONY: all