summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-20 15:41:32 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-20 17:37:03 +0100
commit61a7366c9306f17c45b7832de1c2838ab017ac38 (patch)
tree8d82b321db1e35d478571489b2d0a5d3eb5de0e8
parent784a72b02ba2f0940c4d4ec63f9bac0e66c49e59 (diff)
fix clean targets (some; git has no “svn st --no-ignore”)
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
-rw-r--r--mk/build.mk25
1 files changed, 14 insertions, 11 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 781da5f41..3adea0d8c 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -177,8 +177,9 @@ clean:
rm $$f ; \
done \
done
- rm -rf $(BUILD_DIR) $(BIN_DIR) $(TARGET_DIR) ${TOPDIR}/.cfg
- rm -f ${TOPDIR}/package/*/info.mk
+ rm -rf $(BUILD_DIR) $(BIN_DIR) $(TARGET_DIR) ${TOPDIR}/.cfg \
+ ${TOPDIR}/package/pkglist.d
+ rm -f ${TOPDIR}/package/*/info.mk ${TOPDIR}/package/Depends.mk
cleankernel:
@$(TRACE) cleankernel
@@ -188,9 +189,11 @@ cleandir:
@$(TRACE) cleandir
@$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE)
rm -rf $(BUILD_DIR_PFX) $(BIN_DIR_PFX) $(TARGET_DIR_PFX) \
- ${TOPDIR}/.cfg*
- rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_PARENT_PFX) $(TOOLS_BUILD_DIR)
- rm -f .tmpconfig.h ${TOPDIR}/package/*/info.mk
+ ${TOPDIR}/.cfg* ${TOPDIR}/package/pkglist.d
+ rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_PARENT_PFX) \
+ $(TOOLS_BUILD_DIR)
+ rm -f .tmpconfig.h ${TOPDIR}/package/*/info.mk \
+ ${TOPDIR}/package/Depends.mk ${TOPDIR}/prereq.mk
cleantarget:
@$(TRACE) cleantarget
@@ -203,10 +206,10 @@ distclean:
@$(TRACE) distclean
@$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE)
rm -rf $(BUILD_DIR_PFX) $(BIN_DIR_PFX) $(TARGET_DIR_PFX) $(DISTDIR) \
- ${TOPDIR}/.cfg*
+ ${TOPDIR}/.cfg* ${TOPDIR}/package/pkglist.d
rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_PARENT_PFX) $(TOOLS_BUILD_DIR)
- rm -f .config* .defconfig .tmpconfig.h all.config \
- ${TOPDIR}/package/*/info.mk
+ rm -f .config* .defconfig .tmpconfig.h all.config ${TOPDIR}/prereq.mk \
+ ${TOPDIR}/package/*/info.mk ${TOPDIR}/package/Depends.mk
else # ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
@@ -346,10 +349,10 @@ bulk:
distclean:
@$(MAKE) -C $(CONFIG) clean
@rm -rf $(BUILD_DIR) $(TOOLS_BUILD_DIR) $(BIN_DIR) $(DISTDIR) \
- ${TOPDIR}/.cfg*
+ ${TOPDIR}/.cfg* ${TOPDIR}/package/pkglist.d
@rm -rf $(TOOLCHAIN_BUILD_DIR) $(STAGING_PARENT) $(TARGET_DIR)
- @rm -f .config* .defconfig all.config .tmpconfig.h \
- ${TOPDIR}/package/*/info.mk
+ @rm -f .config* .defconfig all.config .tmpconfig.h ${TOPDIR}/prereq.mk \
+ ${TOPDIR}/package/*/info.mk ${TOPDIR}/package/Depends.mk
endif # ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)