[pygobject] Bug 605937 - pygobject: Makefile.am sets $TMPDIR, disrupting distcc



commit 4e2efa91d101bf755739e1cca8eee41eb0ad20fd
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date:   Mon Jan 4 08:35:14 2010 +0100

    Bug 605937 - pygobject: Makefile.am sets $TMPDIR, disrupting distcc
    
    Committed a patch from Kevin Pyle

 Makefile.am |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 93442af..580b489 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,23 +55,22 @@ uninstall-local:
 	rm -f $(DESTDIR)$(pythondir)/pygtk.pth $(DESTDIR)$(pyexecdir)/pygtk.pth
 
 EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM).egg
-TMPDIR = `pwd`/$(PACKAGE)-$(PACKAGE_VERSION)
 
+egg: EGG_TMPDIR:=$(TMPDIR)/$(PACKAGE)-$(PACKAGE_VERSION)
 egg: $(top_srcdir)/gobject/gobject.la PKG-INFO
-	rm -fr $(TMPDIR)
+	rm -fr $(EGG_TMPDIR)
 	echo $(EGG_NAME)
-	mkdir -p $(TMPDIR)
-	mkdir -p $(TMPDIR)/EGG-INFO
-	make -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(TMPDIR)
-	$(INSTALL) dsextras.py $(TMPDIR)
-	rm -fr $(TMPDIR)/gobject.la
-	$(INSTALL) PKG-INFO $(TMPDIR)/EGG-INFO
-	echo "gobject.so" >> $(TMPDIR)/EGG-INFO/native_libs.txt
-	echo "gobject" >> $(TMPDIR)/EGG-INFO/top_level.txt
-	echo "dsextras.py" >> $(TMPDIR)/EGG-INFO/top_level.txt
-	cd $(TMPDIR) && zip -rq $(EGG_NAME) .
-	mv $(TMPDIR)/$(EGG_NAME) .
-	rm -fr $(TMPDIR)
+	$(MKDIR_P) $(EGG_TMPDIR)
+	$(MKDIR_P) $(EGG_TMPDIR)/EGG-INFO
+	$(MAKE) -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(EGG_TMPDIR)
+	$(INSTALL) dsextras.py $(EGG_TMPDIR)
+	rm -fr $(EGG_TMPDIR)/gobject.la
+	$(INSTALL) PKG-INFO $(EGG_TMPDIR)/EGG-INFO
+	echo "gobject.so" >> $(EGG_TMPDIR)/EGG-INFO/native_libs.txt
+	( echo "gobject" ; echo "dsextras.py" ) >> $(EGG_TMPDIR)/EGG-INFO/top_level.txt
+	cd $(EGG_TMPDIR) && zip -rq $(EGG_NAME) .
+	mv $(EGG_TMPDIR)/$(EGG_NAME) .
+	rm -fr $(EGG_TMPDIR)
 
 doc-dist:
 	mkdir pygobject



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]