diff options
author | Mike Frysinger | 2005-09-09 04:49:10 +0200 |
---|---|---|
committer | Mike Frysinger | 2005-09-09 04:49:10 +0200 |
commit | 5bc1f0c323a5795378a0b2fb7eef96df07cd24fd (patch) | |
tree | f959805f1da04e26dba045691f9ab5a768fcc027 | |
parent | touchup target menu display (diff) | |
download | buildroot-5bc1f0c323a5795378a0b2fb7eef96df07cd24fd.tar.gz buildroot-5bc1f0c323a5795378a0b2fb7eef96df07cd24fd.tar.xz buildroot-5bc1f0c323a5795378a0b2fb7eef96df07cd24fd.zip |
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 :(
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |