X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=Makefile;h=b240492b897fa2bb2cd76871633c5a28ca031443;hb=b29ef886116d541c519807a1b277882a32147f08;hp=5434b0e7f1cd970bf18ac95aee8f9bfc2365e594;hpb=2f006aa5e8a74e2dd224f5e9b90d36c79651fd66;p=openwrt-10.03%2F.git diff --git a/Makefile b/Makefile index 5434b0e7f..b240492b8 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) # along with the packages to build for the target. # ############################################################## -TARGETS:=linux-headers host-sed uclibc-configured binutils gcc uclibc-target-utils +TARGETS:=host-sed linux-headers uclibc-configured binutils gcc uclibc-target-utils include toolchain/Makefile.in include toolchain/*/Makefile.in include package/Makefile.in @@ -105,8 +105,10 @@ $(STAGING_DIR): @ln -sf ../lib $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib $(TARGET_DIR): - zcat target/default/skel.tar.gz | tar -C $(BUILD_DIR) -xf - + @mkdir -p $(TARGET_DIR) cp -a target/default/target_skeleton/* $(TARGET_DIR)/ + mkdir -p $(TARGET_DIR)/{proc,dev,jffs,tmp,usr/sbin} + chmod 1777 $(TARGET_DIR)/tmp -find $(TARGET_DIR) -type d -name CVS -exec rm -rf {} \; > /dev/null 2>&1 source: $(TARGETS_SOURCE) @@ -118,6 +120,7 @@ source: $(TARGETS_SOURCE) ############################################################# clean: rm -rf $(BUILD_DIR) $(IMAGE).* + -rm -f openwrt-* @$(MAKE) -C $(CONFIG) clean distclean: clean @@ -178,7 +181,7 @@ defconfig: $(CONFIG)/conf # Cleanup and misc junk # ############################################################# -clean: +clean: @$(MAKE) -C $(CONFIG) clean distclean: clean