jdk/makefiles/CopySamples.gmk
changeset 16636 1cc691bcfe50
parent 13702 efd6a05935b2
child 20547 453837141fac
--- a/jdk/makefiles/CopySamples.gmk	Wed Jul 05 18:48:16 2017 +0200
+++ b/jdk/makefiles/CopySamples.gmk	Fri Apr 05 09:39:10 2013 +0200
@@ -53,19 +53,13 @@
 endif
 
 $(SAMPLE_TARGET_DIR)/dtrace/%: $(SAMPLE_SOLARIS_SOURCE_DIR)/dtrace/%
-	$(MKDIR) -p $(@D)
-	$(RM) $@
-	$(CP) $< $@
+	$(call install-file)
 
 $(SAMPLE_TARGET_DIR)/webservices/%: $(SAMPLE_CLOSED_SOURCE_DIR)/webservices/%
-	$(MKDIR) -p $(@D)
-	$(RM) $@
-	$(CP) $< $@
+	$(call install-file)
 
 $(SAMPLE_TARGET_DIR)/%: $(SAMPLE_SOURCE_DIR)/%
-	$(MKDIR) -p $(@D)
-	$(RM) $@
-	$(CP) $< $@
+	$(call install-file)
 
 COPY_FILES += $(SAMPLE_TARGET)