changeset 17:bb9f330cd95a

6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter Summary: Cleanup of OUTPUTDIR handling Reviewed-by: xdono
author ohair
date Sun, 09 Mar 2008 15:47:58 -0700
parents 13adabd0ff72
children d840592860e4
files Makefile
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Mar 09 13:11:51 2008 -0700
+++ b/Makefile	Sun Mar 09 15:47:58 2008 -0700
@@ -23,6 +23,8 @@
 # have any questions.
 #
 
+BUILD_PARENT_DIRECTORY=.
+
 ifndef TOPDIR
   TOPDIR:=$(shell \
     if [ -r ./j2se/make/Makefile -o -r ./jdk/make/Makefile ]; then \
@@ -66,6 +68,7 @@
 
 all::
 	@$(ECHO) $(PLATFORM) $(ARCH) $(RELEASE) build started: `$(DATE) '+%y-%m-%d %H:%M'`
+	$(MKDIR) -p $(OUTPUTDIR)
 
 # Rules for sanity checks
 include ./make/sanity-rules.gmk
@@ -94,12 +97,9 @@
 
 setup: openjdk_check
 	$(MKDIR) -p $(OUTPUTDIR)/j2sdk-image
-	$(MKDIR) -p $(ABS_OUTPUTDIR)/j2sdk-image
-	$(MKDIR) -p $(OUTPUTDIR)-fastdebug/j2sdk-image
-	$(MKDIR) -p $(ABS_OUTPUTDIR)-fastdebug/j2sdk-image
 
 # Check on whether we really can build the openjdk, need source etc.
-openjdk_check:
+openjdk_check: FRC
 ifneq ($(SKIP_OPENJDK_BUILD), true)
 	@$(ECHO) " "
 	@$(ECHO) "================================================="
@@ -170,7 +170,7 @@
 
 COMMON_DEBUG_FLAGS= \
 	DEBUG_NAME=$(DEBUG_NAME) \
-	ALT_OUTPUTDIR=$(_OUTPUTDIR)-$(DEBUG_NAME) \
+	ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)-$(DEBUG_NAME) \
 	NO_DOCS=true
 
 product_build: setup
@@ -501,3 +501,6 @@
 j2se_fastdebug_only: jdk_fastdebug_only
 j2se_only: jdk_only
 
+# Force target
+FRC:
+