From 5bc1f0c323a5795378a0b2fb7eef96df07cd24fd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 9 Sep 2005 02:49:10 +0000 Subject: [PATCH] Allan Clark writes: Quick patch to avoid deleting my directory of RPM Sources. I tend to use buildroot as "make DL_DIR=/.rh/SOURCES", with the rpm topdir set to $HOME/.rh in my .rpmmacros -- allows me to build RPMs as non-root, and share the source with buildroot. Problem is, buildroot likes to delete my directory :( --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dd384e9e89..5d8f725992 100644 --- a/Makefile +++ b/Makefile @@ -133,7 +133,10 @@ dirclean: $(TARGETS_DIRCLEAN) rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) distclean: - rm -rf $(DL_DIR) $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) +ifeq ($(DL_DIR),$(BASE_DIR)/dl) + rm -rf $(DL_DIR) +endif + rm -rf $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) sourceball: rm -rf $(BUILD_DIR) -- 2.30.2