jdk/make/common/Demo.gmk
changeset 7962 fbf25bae06b1
parent 7668 d4a77089c587
child 8022 d11e5f2eb62c
equal deleted inserted replaced
7961:252a7e8c37c1 7962:fbf25bae06b1
    71 # Place to hold the build area (kind of a temp area)
    71 # Place to hold the build area (kind of a temp area)
    72 DEMO_BUILD_AREA     = $(DEMOCLASSDIR)/$(PRODUCT)/$(DEMONAME)
    72 DEMO_BUILD_AREA     = $(DEMOCLASSDIR)/$(PRODUCT)/$(DEMONAME)
    73 
    73 
    74 # Destination "src" directory
    74 # Destination "src" directory
    75 DEMO_BUILD_SRCDIR     = $(DEMO_BUILD_AREA)/src
    75 DEMO_BUILD_SRCDIR     = $(DEMO_BUILD_AREA)/src
    76 DEMO_BUILD_SRCZIP     = $(DEMO_BUILD_AREA)/src.zip
    76 
    77 DEMO_SOURCE_ZIP       = $(DEMO_DESTDIR)/src.zip
    77 ifndef DEMO_SKIP_SRCZIP
       
    78   DEMO_BUILD_SRCZIP     = $(DEMO_BUILD_AREA)/src.zip
       
    79   DEMO_SOURCE_ZIP       = $(DEMO_DESTDIR)/src.zip
       
    80 endif
    78 
    81 
    79 # Place to hold the jar image we are creating
    82 # Place to hold the jar image we are creating
    80 DEMO_JAR_IMAGE      = $(DEMO_BUILD_AREA)/jar_image
    83 DEMO_JAR_IMAGE      = $(DEMO_BUILD_AREA)/jar_image
    81 
    84 
    82 # The jar manifest file we will create and use
    85 # The jar manifest file we will create and use
   256 	     $(BOOT_JAR_JFLAGS)
   259 	     $(BOOT_JAR_JFLAGS)
   257 	@$(java-vm-cleanup)
   260 	@$(java-vm-cleanup)
   258 
   261 
   259 endif
   262 endif
   260 
   263 
   261 # Create a src.zip file
   264 ifndef DEMO_SKIP_SRCZIP
   262 $(DEMO_BUILD_SRCZIP): $(DEMO_FULL_SOURCES)
   265   # Create a src.zip file
       
   266   $(DEMO_BUILD_SRCZIP): $(DEMO_FULL_SOURCES)
   263 	@$(prep-target)
   267 	@$(prep-target)
   264 	$(CD) $(DEMO_BUILD_AREA)/src && $(ZIPEXE) -q -r ../$(@F) .
   268 	$(CD) $(DEMO_BUILD_AREA)/src && $(ZIPEXE) -q -r ../$(@F) .
   265 
   269 
   266 # Install the destination src.zip file and create the src tree
   270   # Install the destination src.zip file and create the src tree
   267 $(DEMO_SOURCE_ZIP): $(DEMO_BUILD_SRCZIP)
   271   $(DEMO_SOURCE_ZIP): $(DEMO_BUILD_SRCZIP)
   268 	$(install-file)
   272 	$(install-file)
       
   273 endif
   269 
   274 
   270 # Native library building
   275 # Native library building
   271 ifdef DEMO_LIBRARY
   276 ifdef DEMO_LIBRARY
   272 
   277 
   273   # Full paths to object files
   278   # Full paths to object files
   360 # Clean rule
   365 # Clean rule
   361 clean clobber:
   366 clean clobber:
   362 	$(RM) -r $(DEMO_BUILD_AREA)
   367 	$(RM) -r $(DEMO_BUILD_AREA)
   363 	$(RM) -r $(DEMO_DESTDIR)
   368 	$(RM) -r $(DEMO_DESTDIR)
   364 
   369 
   365 # This should not be needed, but some versions of GNU amke have a bug that
   370 # This should not be needed, but some versions of GNU make have a bug that
   366 #   sometimes deleted these files  for some strange  and unknown reason 
   371 #   sometimes deleted these files  for some strange  and unknown reason 
   367 #   (GNU make version 3.78.1 has the problem, GNU make version 3.80 doesn't?)
   372 #   (GNU make version 3.78.1 has the problem, GNU make version 3.80 doesn't?)
   368 .PRECIOUS: $(DEMO_FULL_SOURCES) $(DEMO_BUILD_SRCZIP) $(DEMO_SOURCE_ZIP)
   373 .PRECIOUS: $(DEMO_FULL_SOURCES) $(DEMO_BUILD_SRCZIP) $(DEMO_SOURCE_ZIP)
   369 
   374 
   370 # List phony targets
   375 # List phony targets