jdk/make/common/shared/Defs.gmk
changeset 302 db91bac7385f
parent 140 3d601b5affa3
parent 300 d4f77ff718fd
child 312 b13547d8416e
equal deleted inserted replaced
173:bf2517e15f0c 302:db91bac7385f
     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
   447   OUTPUTDIR:=$(_OUTPUTDIR)
   447   OUTPUTDIR:=$(_OUTPUTDIR)
   448 endif
   448 endif
   449 # Check for spaces and null value
   449 # Check for spaces and null value
   450 OUTPUTDIR:=$(call AltCheckSpaces,OUTPUTDIR)
   450 OUTPUTDIR:=$(call AltCheckSpaces,OUTPUTDIR)
   451 OUTPUTDIR:=$(call AltCheckValue,OUTPUTDIR)
   451 OUTPUTDIR:=$(call AltCheckValue,OUTPUTDIR)
       
   452 
       
   453 #
       
   454 # When signing the JCE framework and provider, we could be using built
       
   455 # bits on a read-only filesystem.  If so, this test will fail and crash
       
   456 # the build.
       
   457 #
       
   458 ifndef IGNORE_WRITABLE_OUTPUTDIR_TEST
   452 # Create the output directory and make sure it exists and is writable
   459 # Create the output directory and make sure it exists and is writable
   453 _create_outputdir:=$(shell $(MKDIR) -p "$(OUTPUTDIR)" > $(DEV_NULL) 2>&1)
   460 _create_outputdir:=$(shell $(MKDIR) -p "$(OUTPUTDIR)" > $(DEV_NULL) 2>&1)
   454 ifeq ($(call WriteDirExists,$(OUTPUTDIR),/dev/null),/dev/null)
   461 ifeq ($(call WriteDirExists,$(OUTPUTDIR),/dev/null),/dev/null)
   455   _outputdir_error:=$(error "ERROR: OUTPUTDIR '$(OUTPUTDIR)' not created or not writable")
   462   _outputdir_error:=$(error "ERROR: OUTPUTDIR '$(OUTPUTDIR)' not created or not writable")
   456 endif
   463 endif
       
   464 endif
       
   465 
   457 # Define absolute path if needed and check for spaces and null value
   466 # Define absolute path if needed and check for spaces and null value
   458 ifndef ABS_OUTPUTDIR
   467 ifndef ABS_OUTPUTDIR
   459   ABS_OUTPUTDIR:=$(call FullPath,$(OUTPUTDIR))
   468   ABS_OUTPUTDIR:=$(call FullPath,$(OUTPUTDIR))
   460 endif
   469 endif
   461 ABS_OUTPUTDIR:=$(call AltCheckSpaces,ABS_OUTPUTDIR)
   470 ABS_OUTPUTDIR:=$(call AltCheckSpaces,ABS_OUTPUTDIR)