1 ACLOCAL_AMFLAGS = -I m4
4 SUBDIRS = docs glib gobject gio examples
10 if ENABLE_INTROSPECTION
16 PLATFORM_VERSION = 2.0
22 pygobject-$(PLATFORM_VERSION).pc.in \
26 pygobject_postinstall.py \
34 MAINTAINERCLEANFILES = \
36 $(srcdir)/aclocal.m4 \
37 $(srcdir)/autoscan.log \
39 $(srcdir)/config.guess \
40 $(srcdir)/config.h.in \
41 $(srcdir)/config.sub \
42 $(srcdir)/configure.scan \
44 $(srcdir)/install-sh \
47 $(srcdir)/mkinstalldirs \
49 $(srcdir)/xmldocs.make \
50 $(srcdir)/gtk-doc.make \
52 $(srcdir)/py-compile \
53 $(srcdir)/m4/libtool.m4 \
54 $(srcdir)/m4/ltoptions.m4 \
55 $(srcdir)/m4/ltsugar.m4 \
56 $(srcdir)/m4/ltversion.m4 \
57 $(srcdir)/m4/lt~obsolete.m4 \
58 `find "$(srcdir)" -type f -name Makefile.in -print` \
59 `find "$(srcdir)" -type f -name "*.pyc" -print`
64 INCLUDES = -I$(top_srcdir)/gobject $(PYTHON_INCLUDES) $(GLIB_CFLAGS)
67 pkgconfigdir = $(libdir)/pkgconfig
68 pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc
71 pkgpyexecdir = $(pyexecdir)/gtk-2.0
72 pkgpyexec_PYTHON = dsextras.py
73 pkgpyexec_LTLIBRARIES =
76 pyexec_PYTHON = pygtk.py
80 common_ldflags = -module -avoid-version
82 common_ldflags += -no-undefined
87 $(mkinstalldirs) $(DESTDIR)$(pythondir)
88 echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
90 $(mkinstalldirs) $(DESTDIR)$(pyexecdir)
91 echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
93 rm -f $(DESTDIR)$(pythondir)/pygtk.pth $(DESTDIR)$(pyexecdir)/pygtk.pth
95 EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM).egg
97 egg: EGG_TMPDIR:=$(TMPDIR)/$(PACKAGE)-$(PACKAGE_VERSION)
98 egg: $(top_srcdir)/gobject/gobject.la PKG-INFO
101 $(MKDIR_P) $(EGG_TMPDIR)
102 $(MKDIR_P) $(EGG_TMPDIR)/EGG-INFO
103 $(MAKE) -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(EGG_TMPDIR)
104 $(INSTALL) dsextras.py $(EGG_TMPDIR)
105 rm -fr $(EGG_TMPDIR)/gobject.la
106 $(INSTALL) PKG-INFO $(EGG_TMPDIR)/EGG-INFO
107 echo "gobject.so" >> $(EGG_TMPDIR)/EGG-INFO/native_libs.txt
108 ( echo "gobject" ; echo "dsextras.py" ) >> $(EGG_TMPDIR)/EGG-INFO/top_level.txt
109 cd $(EGG_TMPDIR) && zip -rq $(EGG_NAME) .
110 mv $(EGG_TMPDIR)/$(EGG_NAME) .
115 cp -r docs/html/*.html pygobject
116 cp -r docs/html/*.sgml pygobject
117 cp -r docs/html/*.devhelp pygobject
118 cp -r docs/style.css pygobject
119 tar cfz $(PACKAGE)-docs.tar.gz pygobject
123 @ROOT=`svn info --xml|egrep ^"<url>"|cut -d\> -f2|cut -d\< -f1`; \
124 SVNVERSION=`echo $(VERSION)|sed s/\\\./_/g`;\
125 echo "* Tagging $(VERSION)"; \
126 svn cp -m "Tag $(VERSION)" \
128 svn+ssh://johan@svn.gnome.org/svn/pygobject/tags/PYGOBJECT_$$SVNVERSION
135 @if test -d "$(srcdir)/.git"; then \
136 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log PYGOBJECT_2_17_0^^.. --stat) | fmt --split-only > $@.tmp \
139 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
140 (test -f $@ || echo git-log is required to generate this file >> $@)); \
143 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
144 echo A git checkout and git-log is required to generate this file >> $@); \
149 if test $(srcdir) = .; then :; else \
150 rm -f $(BUILT_EXTRA_DIST); \
153 dist-hook: $(BUILT_EXTRA_DIST)
154 files='$(BUILT_EXTRA_DIST)'; \
155 for f in $$files; do \
156 if test -f $$f; then d=.; else d=$(srcdir); fi; \
157 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done
160 cd tests && $(MAKE) check.gdb
163 cd tests && $(MAKE) check.valgrind
166 -include $(top_srcdir)/git.mk