X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4d71a0805ae4e1e69596b1fb0682ec184d8af290..844425e1b010774989e7742cc89cfcb5d4328be3:/openwrt/Makefile diff --git a/openwrt/Makefile b/openwrt/Makefile index c2e628051..008117dd7 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -107,6 +107,8 @@ $(STAGING_DIR): $(TARGET_DIR): @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) @@ -117,7 +119,8 @@ source: $(TARGETS_SOURCE) # ############################################################# clean: - rm -rf $(BUILD_DIR) $(IMAGE).* + rm -rf $(BUILD_DIR) + -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