jdk/make/common/shared/Defs.gmk
changeset 312 b13547d8416e
parent 307 18015b31ef73
parent 302 db91bac7385f
child 917 75261da60fff
child 847 530bfef1ed6f
equal deleted inserted replaced
311:3c14f21bf3f7 312:b13547d8416e
     1 #
     1 #
     2 # Copyright 2005-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 # Copyright 2005-2008 Sun Microsystems, Inc.  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.  Sun designates this
     7 # published by the Free Software Foundation.  Sun designates this
   449   OUTPUTDIR:=$(_OUTPUTDIR)
   449   OUTPUTDIR:=$(_OUTPUTDIR)
   450 endif
   450 endif
   451 # Check for spaces and null value
   451 # Check for spaces and null value
   452 OUTPUTDIR:=$(call AltCheckSpaces,OUTPUTDIR)
   452 OUTPUTDIR:=$(call AltCheckSpaces,OUTPUTDIR)
   453 OUTPUTDIR:=$(call AltCheckValue,OUTPUTDIR)
   453 OUTPUTDIR:=$(call AltCheckValue,OUTPUTDIR)
       
   454 
       
   455 #
       
   456 # When signing the JCE framework and provider, we could be using built
       
   457 # bits on a read-only filesystem.  If so, this test will fail and crash
       
   458 # the build.
       
   459 #
       
   460 ifndef IGNORE_WRITABLE_OUTPUTDIR_TEST
   454 # Create the output directory and make sure it exists and is writable
   461 # Create the output directory and make sure it exists and is writable
   455 _create_outputdir:=$(shell $(MKDIR) -p "$(OUTPUTDIR)" > $(DEV_NULL) 2>&1)
   462 _create_outputdir:=$(shell $(MKDIR) -p "$(OUTPUTDIR)" > $(DEV_NULL) 2>&1)
   456 ifeq ($(call WriteDirExists,$(OUTPUTDIR),/dev/null),/dev/null)
   463 ifeq ($(call WriteDirExists,$(OUTPUTDIR),/dev/null),/dev/null)
   457   _outputdir_error:=$(error "ERROR: OUTPUTDIR '$(OUTPUTDIR)' not created or not writable")
   464   _outputdir_error:=$(error "ERROR: OUTPUTDIR '$(OUTPUTDIR)' not created or not writable")
   458 endif
   465 endif
       
   466 endif
       
   467 
   459 # Define absolute path if needed and check for spaces and null value
   468 # Define absolute path if needed and check for spaces and null value
   460 ifndef ABS_OUTPUTDIR
   469 ifndef ABS_OUTPUTDIR
   461   ABS_OUTPUTDIR:=$(call FullPath,$(OUTPUTDIR))
   470   ABS_OUTPUTDIR:=$(call FullPath,$(OUTPUTDIR))
   462 endif
   471 endif
   463 ABS_OUTPUTDIR:=$(call AltCheckSpaces,ABS_OUTPUTDIR)
   472 ABS_OUTPUTDIR:=$(call AltCheckSpaces,ABS_OUTPUTDIR)