Makefile
changeset 26398 ca1f84f97e20
parent 26128 91be51647a45
child 26548 3b002da2aee1
equal deleted inserted replaced
26285:705a9199d2e4 26398:ca1f84f97e20
   106     # prevents a new make run to reuse the previous servers.
   106     # prevents a new make run to reuse the previous servers.
   107     ifneq (,$(SJAVAC_SERVER_DIR))
   107     ifneq (,$(SJAVAC_SERVER_DIR))
   108       $(shell $(MKDIR) -p $(SJAVAC_SERVER_DIR) && $(RM) -rf $(SJAVAC_SERVER_DIR)/*)
   108       $(shell $(MKDIR) -p $(SJAVAC_SERVER_DIR) && $(RM) -rf $(SJAVAC_SERVER_DIR)/*)
   109     endif
   109     endif
   110 
   110 
       
   111     # Split out the targets requiring sequential execution. Run these targets separately
       
   112     # from the rest so that the rest may still enjoy full parallel execution.
       
   113     SEQUENTIAL_TARGETS := $(filter dist-clean clean% reconfigure, $(MAIN_TARGETS))
       
   114     PARALLEL_TARGETS := $(filter-out $(SEQUENTIAL_TARGETS), $(MAIN_TARGETS))
       
   115 
   111     main-wrapper:
   116     main-wrapper:
   112 	@$(if $(findstring clean, $(MAIN_TARGETS)), , $(call AtMakeStart))
   117         ifneq ($(SEQUENTIAL_TARGETS), )
   113 	(cd $(root_dir)/make && $(BUILD_LOG_WRAPPER) $(MAKE) -f Main.gmk SPEC=$(SPEC) -j $(JOBS) \
   118 	  (cd $(root_dir)/make && $(MAKE) -f Main.gmk SPEC=$(SPEC) -j 1 \
   114 	    $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $(MAIN_TARGETS) \
   119 	      $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $(SEQUENTIAL_TARGETS))
   115 	    $(if $(filter true, $(OUTPUT_SYNC_SUPPORTED)), -O$(OUTPUT_SYNC)))
   120         endif
   116 	@$(if $(findstring clean, $(MAIN_TARGETS)), , $(call AtMakeEnd))
   121         ifneq ($(PARALLEL_TARGETS), )
       
   122 	  @$(call AtMakeStart)
       
   123 	  (cd $(root_dir)/make && $(BUILD_LOG_WRAPPER) $(MAKE) -f Main.gmk SPEC=$(SPEC) -j $(JOBS) \
       
   124 	      $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $(PARALLEL_TARGETS) \
       
   125 	      $(if $(filter true, $(OUTPUT_SYNC_SUPPORTED)), -O$(OUTPUT_SYNC)))
       
   126 	  @$(call AtMakeEnd)
       
   127         endif
   117 
   128 
   118      .PHONY: main-wrapper
   129      .PHONY: main-wrapper
   119 
   130 
   120    endif
   131    endif
   121 endif
   132 endif
   136 	$(info .  make docs              # Create all docs)
   147 	$(info .  make docs              # Create all docs)
   137 	$(info .  make docs-javadoc      # Create just javadocs, depends on less than full docs)
   148 	$(info .  make docs-javadoc      # Create just javadocs, depends on less than full docs)
   138 	$(info .  make profiles          # Create complete j2re compact profile images)
   149 	$(info .  make profiles          # Create complete j2re compact profile images)
   139 	$(info .  make bootcycle-images  # Build images twice, second time with newly built JDK)
   150 	$(info .  make bootcycle-images  # Build images twice, second time with newly built JDK)
   140 	$(info .  make install           # Install the generated images locally)
   151 	$(info .  make install           # Install the generated images locally)
       
   152 	$(info .  make reconfigure       # Rerun configure with the same arguments as last time)
   141 	$(info .  make clean             # Remove all files generated by make, but not those)
   153 	$(info .  make clean             # Remove all files generated by make, but not those)
   142 	$(info .                         # generated by configure. Do not run clean and other)
   154 	$(info .                         # generated by configure)
   143 	$(info .                         # targets together as that might behave in an)
       
   144 	$(info .                         # unexpected way.)
       
   145 	$(info .  make dist-clean        # Remove all files, including configuration)
   155 	$(info .  make dist-clean        # Remove all files, including configuration)
   146 	$(info .  make help              # Give some help on using make)
   156 	$(info .  make help              # Give some help on using make)
   147 	$(info .  make test              # Run tests, default is all tests (see TEST below))
   157 	$(info .  make test              # Run tests, default is all tests (see TEST below))
   148 	$(info )
   158 	$(info )
   149 	$(info Targets for specific modules)
   159 	$(info Targets for specific modules)