223 $(eval $(call SetupBuildDemo, TransparentRuler, \
224 DEMO_SUBDIR := jfc, \
225 MAIN_CLASS := transparentruler.Ruler, \
226 ))
227
228 ################################################################################
229 # Copy html and README files.
230
231 $(SUPPORT_OUTPUTDIR)/demos/image/README: $(DEMO_SHARE_SRC)/README
232 $(call install-file)
233
234 TARGETS += $(SUPPORT_OUTPUTDIR)/demos/image/README
235
236 ################################################################################
237 # Copy netbeans project files.
238
239 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%: $(DEMO_SHARE_SRC)/nbproject/%
240 $(call install-file)
241 $(CHMOD) -f ug+w $@
242
243 ifeq ($(call isTargetOs, solaris), true)
244 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \
245 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \
246 $(call FindFiles, $(DEMO_SHARE_SRC)/nbproject))
247 else
248 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \
249 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \
250 $(call FindFiles, $(DEMO_SHARE_SRC)/nbproject))
251 endif
252
253 ################################################################################
254
255 ifneq ($(filter images, $(MAKECMDGOALS)), )
256 $(eval $(call SetupCopyFiles, COPY_TO_TEST_IMAGE, \
257 SRC := $(SUPPORT_OUTPUTDIR)/demos/image, \
258 DEST := $(TEST_IMAGE_DIR)/jdk/demos, \
259 FILES := $(call FindFiles, $(SUPPORT_OUTPUTDIR)/demos/image), \
260 ))
261
262 IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
263 endif
264
265 ################################################################################
266 # Hook to include the corresponding custom file, if present.
267 $(eval $(call IncludeCustomExtension, CompileDemos-post.gmk))
268
269 all: $(TARGETS)
270 images: $(IMAGES_TARGETS)
271
|
223 $(eval $(call SetupBuildDemo, TransparentRuler, \
224 DEMO_SUBDIR := jfc, \
225 MAIN_CLASS := transparentruler.Ruler, \
226 ))
227
228 ################################################################################
229 # Copy html and README files.
230
231 $(SUPPORT_OUTPUTDIR)/demos/image/README: $(DEMO_SHARE_SRC)/README
232 $(call install-file)
233
234 TARGETS += $(SUPPORT_OUTPUTDIR)/demos/image/README
235
236 ################################################################################
237 # Copy netbeans project files.
238
239 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%: $(DEMO_SHARE_SRC)/nbproject/%
240 $(call install-file)
241 $(CHMOD) -f ug+w $@
242
243 TARGETS += $(patsubst $(DEMO_SHARE_SRC)/nbproject/%, \
244 $(SUPPORT_OUTPUTDIR)/demos/image/nbproject/%, \
245 $(call FindFiles, $(DEMO_SHARE_SRC)/nbproject))
246
247 ################################################################################
248
249 ifneq ($(filter images, $(MAKECMDGOALS)), )
250 $(eval $(call SetupCopyFiles, COPY_TO_TEST_IMAGE, \
251 SRC := $(SUPPORT_OUTPUTDIR)/demos/image, \
252 DEST := $(TEST_IMAGE_DIR)/jdk/demos, \
253 FILES := $(call FindFiles, $(SUPPORT_OUTPUTDIR)/demos/image), \
254 ))
255
256 IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
257 endif
258
259 ################################################################################
260 # Hook to include the corresponding custom file, if present.
261 $(eval $(call IncludeCustomExtension, CompileDemos-post.gmk))
262
263 all: $(TARGETS)
264 images: $(IMAGES_TARGETS)
265
|