diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-09 02:49:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-09 02:49:10 +0000 |
commit | 5bc1f0c323a5795378a0b2fb7eef96df07cd24fd (patch) | |
tree | f959805f1da04e26dba045691f9ab5a768fcc027 /Makefile | |
parent | 2e31d32a0c01cbe8b8dbbadf24ba393682723469 (diff) | |
download | buildroot-novena-5bc1f0c323a5795378a0b2fb7eef96df07cd24fd.tar.gz buildroot-novena-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 :(
Diffstat (limited to 'Makefile')
-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) |