X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Fimagebuilder%2FMakefile;h=cf4a6fe1a108347d94925fa460d468e205788d51;hb=3b20aec50f6ec53d9e532d6718924f01305e8004;hp=f09bdbd2c2805936d090e4e0c1812be6549022e0;hpb=85e7844dcff7f68a07d9a6160fc6a957ee16591c;p=openwrt-10.03%2F.git diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index f09bdbd2c..cf4a6fe1a 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -18,21 +18,23 @@ IB_BUILD_DIR:=$(BUILD_DIR)/$(IB_NAME) all: compile -$(BIN_DIR)/$(IB_NAME).tar.bz2: FORCE +$(BIN_DIR)/$(IB_NAME).tar.bz2: clean rm -rf $(IB_BUILD_DIR) mkdir -p $(IB_BUILD_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) $(IB_BUILD_DIR)/staging_dir_$(ARCH)/bin $(IB_BUILD_DIR)/target/linux $(CP) \ $(INCLUDE_DIR) $(SCRIPT_DIR) $(PACKAGE_DIR) \ $(TOPDIR)/rules.mk $(TOPDIR)/.config \ $(TMP_DIR)/.target.mk \ + $(TMP_DIR)/.packageinfo \ + $(TMP_DIR)/.targetinfo \ ./files/Makefile \ $(IB_BUILD_DIR)/ $(CP) $(STAGING_DIR)/bin/* $(IB_BUILD_DIR)/staging_dir_$(ARCH)/bin $(CP) $(TOPDIR)/target/linux/* $(IB_BUILD_DIR)/target/linux rm -rf $(IB_BUILD_DIR)/target/linux/*/patches -cp $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/* $(IB_BUILD_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) # don't copy subdirectories here - find $(IB_BUILD_DIR) -name .svn | xargs rm -rf - find $(IB_BUILD_DIR) -name CVS | xargs rm -rf + find $(IB_BUILD_DIR) -name .svn -exec rm -rf {} + + find $(IB_BUILD_DIR) -name CVS -exec rm -rf {} + (cd $(BUILD_DIR); \ tar cfj $@ $(IB_NAME); \ ) @@ -42,5 +44,5 @@ prepare: compile: $(BIN_DIR)/$(IB_NAME).tar.bz2 install: compile -clean: +clean: FORCE rm -rf $(IB_BUILD_DIR) $(BIN_DIR)/$(IB_NAME).tar.bz2