1 # |
1 # |
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
41 $(eval $(call IncludeCustomExtension, CompileDemos-pre.gmk)) |
41 $(eval $(call IncludeCustomExtension, CompileDemos-pre.gmk)) |
42 |
42 |
43 # Prepare the find cache. |
43 # Prepare the find cache. |
44 DEMO_SRC_DIRS += $(TOPDIR)/src/demo |
44 DEMO_SRC_DIRS += $(TOPDIR)/src/demo |
45 |
45 |
46 $(eval $(call FillCacheFind, $(wildcard $(DEMO_SRC_DIRS)))) |
46 $(call FillFindCache, $(DEMO_SRC_DIRS)) |
47 |
47 |
48 # Append demo goals to this variable. |
48 # Append demo goals to this variable. |
49 TARGETS = |
49 TARGETS = |
50 |
50 |
51 # The demo structure and contents should really be cleaned up. |
51 # The demo structure and contents should really be cleaned up. |
235 $(CHMOD) -f ug+w $@ |
235 $(CHMOD) -f ug+w $@ |
236 |
236 |
237 ifeq ($(call isTargetOs, solaris), true) |
237 ifeq ($(call isTargetOs, solaris), true) |
238 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \ |
238 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \ |
239 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \ |
239 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \ |
240 $(call CacheFind, $(DEMO_SHARE_SRC)/nbproject)) |
240 $(call FindFiles, $(DEMO_SHARE_SRC)/nbproject)) |
241 else |
241 else |
242 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \ |
242 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \ |
243 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \ |
243 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \ |
244 $(call CacheFind, $(DEMO_SHARE_SRC)/nbproject)) |
244 $(call FindFiles, $(DEMO_SHARE_SRC)/nbproject)) |
245 endif |
245 endif |
246 |
246 |
247 ################################################################################ |
247 ################################################################################ |
248 |
248 |
249 ifneq ($(filter images, $(MAKECMDGOALS)), ) |
249 ifneq ($(filter images, $(MAKECMDGOALS)), ) |
250 $(eval $(call SetupCopyFiles, COPY_TO_TEST_IMAGE, \ |
250 $(eval $(call SetupCopyFiles, COPY_TO_TEST_IMAGE, \ |
251 SRC := $(SUPPORT_OUTPUTDIR)/demos/image, \ |
251 SRC := $(SUPPORT_OUTPUTDIR)/demos/image, \ |
252 DEST := $(TEST_IMAGE_DIR)/jdk/demos, \ |
252 DEST := $(TEST_IMAGE_DIR)/jdk/demos, \ |
253 FILES := $(call CacheFind, $(SUPPORT_OUTPUTDIR)/demos/image), \ |
253 FILES := $(call FindFiles, $(SUPPORT_OUTPUTDIR)/demos/image), \ |
254 )) |
254 )) |
255 |
255 |
256 IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE) |
256 IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE) |
257 endif |
257 endif |
258 |
258 |