summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-01-09 12:26:46 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-01-09 12:26:46 +0000
commit551a38178f7e66f215980fb01200472c8e6d3cd4 (patch)
treefbbfd2556f77dc9f64c5c92af76a7dc35930f859 /Makefile.am
parent0b07af909c44f27368a13ecfa94bfda5762e58fb (diff)
downloadpygobject-551a38178f7e66f215980fb01200472c8e6d3cd4.tar.gz
pygobject-551a38178f7e66f215980fb01200472c8e6d3cd4.tar.xz
pygobject-551a38178f7e66f215980fb01200472c8e6d3cd4.zip
Split out PyGObject from PyGTK.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..e76146e
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,41 @@
+AUTOMAKE_OPTIONS = 1.7
+
+SUBDIRS = gobject . examples tests
+
+PLATFORM_VERSION = 2.0
+
+CLEANFILES =
+EXTRA_DIST = \
+ MANIFEST.in \
+ MAPPING \
+ pygobject-$(PLATFORM_VERSION).pc.in \
+ PKG-INFO \
+ PKG-INFO.in \
+ setup.py \
+ THREADS
+INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -I$(top_srcdir)/gobject
+
+# pkg-config files
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc
+
+# python
+pyexec_PYTHON = pygtk.py
+pyexec_LTLIBRARIES =
+noinst_PYTHON = ltihooks.py
+
+# linker flags
+common_ldflags = -module -avoid-version
+if PLATFORM_WIN32
+common_ldflags += -no-undefined
+endif
+
+# install pth file.
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(pythondir)
+ echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
+install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(pyexecdir)
+ echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
+uninstall-local:
+ rm -f $(DESTDIR)$(pythondir)/pygtk.pth $(DESTDIR)$(pyexecdir)/pygtk.pth