X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a5eaa58a3fde6e908bd929e5d219c9699a00e67c..3d279d60202200d8e01fadb96f222659a740bae0:/openwrt/Makefile diff --git a/openwrt/Makefile b/openwrt/Makefile index dc52dfd9c..0fa90fb40 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -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 $(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