Make the directory before touching files in it...
authorEric Andersen <andersen@codepoet.org>
Wed, 8 Jan 2003 20:36:58 +0000 (20:36 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 8 Jan 2003 20:36:58 +0000 (20:36 -0000)
make/gcc_target.mk

index f78e0bfc71f9bcaf169d4e892176b65e3cb5773d..ff2da63c4520f53fa8d4bc9d0191ac457a5774fb 100644 (file)
@@ -164,10 +164,10 @@ $(GCC_BUILD_DIR3)/.gcc_build_hacks:
                $(STAGING_DIR)/usr/include,;" $(GCC_DIR)/gcc/Makefile.in;
        perl -i -p -e "s,^#define.*STANDARD_INCLUDE_DIR.*,#define STANDARD_INCLUDE_DIR \
                \"/usr/include\",;" $(GCC_DIR)/gcc/cppdefault.h;
+       mkdir -p $(GCC_BUILD_DIR3)
        touch $(GCC_BUILD_DIR3)/.gcc_build_hacks
 
 $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.gcc_build_hacks
-       mkdir -p $(GCC_BUILD_DIR3)
        (cd $(GCC_BUILD_DIR3); PATH=$(STAGING_DIR)/bin:$$PATH AR=$(TARGET_CROSS)ar \
                RANLIB=$(TARGET_CROSS)ranlib LD=$(TARGET_CROSS)ld CC=$(TARGET_CROSS)gcc \
                $(GCC_DIR)/configure \