8179867: JDK9 b167: demos exist in JDK bundles
authorerikj
Wed, 10 May 2017 18:27:48 +0200
changeset 45120 ba4c8ba79c19
parent 45119 decbbff9fdb4
child 45121 5bf18ccab99e
8179867: JDK9 b167: demos exist in JDK bundles Reviewed-by: ihse
jdk/make/CompileDemos.gmk
--- a/jdk/make/CompileDemos.gmk	Wed May 10 12:36:14 2017 +0100
+++ b/jdk/make/CompileDemos.gmk	Wed May 10 18:27:48 2017 +0200
@@ -291,9 +291,21 @@
 
 ################################################################################
 
+ifneq ($(filter images, $(MAKECMDGOALS)), )
+  $(eval $(call SetupCopyFiles, COPY_TO_TEST_IMAGE, \
+      SRC := $(SUPPORT_OUTPUTDIR)/demos/image, \
+      DEST := $(TEST_IMAGE_DIR)/jdk/demos, \
+      FILES := $(call DoubleDollar, $(call CacheFind, $(SUPPORT_OUTPUTDIR)/demos/image)), \
+  ))
+
+  IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
+endif
+
+################################################################################
 # Hook to include the corresponding custom file, if present.
 $(eval $(call IncludeCustomExtension, jdk, CompileDemos.gmk))
 
 all: $(TARGETS)
+images: $(IMAGES_TARGETS)
 
 .PHONY: all