summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-01-20 01:30:22 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-01-20 01:30:22 +0000
commit93e7d047e6076d7990000fdb75d0b8d33ccc6b64 (patch)
treedf20cf604597c31c0c7d955a8658934f94c4f39d /Makefile.am
parentdb1b0deb85340debeb3bd708e12a6767c1c4df82 (diff)
downloadpygobject-93e7d047e6076d7990000fdb75d0b8d33ccc6b64.tar.gz
pygobject-93e7d047e6076d7990000fdb75d0b8d33ccc6b64.tar.xz
pygobject-93e7d047e6076d7990000fdb75d0b8d33ccc6b64.zip
Add a make egg target
* configure.ac (export_dynamic): * Makefile.am (egg): Add a make egg target
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index c3d864f..f173928 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,3 +41,23 @@ install-exec-local:
echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
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: $(top_srcdir)/gobject/gobject.la PKG-INFO
+ rm -fr $(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
+ touch $(TMPDIR)/EGG-INFO/zip-safe
+ cd $(TMPDIR) && zip -rq $(EGG_NAME) .
+ mv $(TMPDIR)/$(EGG_NAME) .
+ rm -fr $(TMPDIR)