svn commit: trunk/buildroot

vapier at uclibc.org vapier at uclibc.org
Fri Sep 9 02:49:13 UTC 2005


Author: vapier
Date: 2005-09-08 19:49:10 -0700 (Thu, 08 Sep 2005)
New Revision: 11411

Log:
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 :(


Modified:
   trunk/buildroot/Makefile


Changeset:
Modified: trunk/buildroot/Makefile
===================================================================
--- trunk/buildroot/Makefile	2005-09-09 02:46:25 UTC (rev 11410)
+++ trunk/buildroot/Makefile	2005-09-09 02:49:10 UTC (rev 11411)
@@ -133,7 +133,10 @@
 	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)




More information about the uClibc-cvs mailing list