1 ACLOCAL_AMFLAGS = -I m4
4 SUBDIRS = docs codegen glib gobject gio examples
6 if ENABLE_INTROSPECTION
12 PLATFORM_VERSION = 2.0
18 pygobject-$(PLATFORM_VERSION).pc.in \
22 pygobject_postinstall.py \
30 MAINTAINERCLEANFILES = \
32 $(srcdir)/aclocal.m4 \
33 $(srcdir)/autoscan.log \
35 $(srcdir)/config.guess \
36 $(srcdir)/config.h.in \
37 $(srcdir)/config.sub \
38 $(srcdir)/configure.scan \
40 $(srcdir)/install-sh \
43 $(srcdir)/mkinstalldirs \
45 $(srcdir)/xmldocs.make \
46 $(srcdir)/gtk-doc.make \
48 $(srcdir)/py-compile \
49 $(srcdir)/m4/libtool.m4 \
50 $(srcdir)/m4/ltoptions.m4 \
51 $(srcdir)/m4/ltsugar.m4 \
52 $(srcdir)/m4/ltversion.m4 \
53 $(srcdir)/m4/lt~obsolete.m4 \
54 `find "$(srcdir)" -type f -name Makefile.in -print` \
55 `find "$(srcdir)" -type f -name "*.pyc" -print`
60 INCLUDES = -I$(top_srcdir)/gobject $(PYTHON_INCLUDES) $(GLIB_CFLAGS)
63 pkgconfigdir = $(libdir)/pkgconfig
64 pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc
67 pkgpyexecdir = $(pyexecdir)/gtk-2.0
68 pkgpyexec_PYTHON = dsextras.py
69 pkgpyexec_LTLIBRARIES =
72 pyexec_PYTHON = pygtk.py
76 common_ldflags = -module -avoid-version
78 common_ldflags += -no-undefined
83 $(mkinstalldirs) $(DESTDIR)$(pythondir)
84 echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
86 $(mkinstalldirs) $(DESTDIR)$(pyexecdir)
87 echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
89 rm -f $(DESTDIR)$(pythondir)/pygtk.pth $(DESTDIR)$(pyexecdir)/pygtk.pth
91 EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM).egg
93 egg: EGG_TMPDIR:=$(TMPDIR)/$(PACKAGE)-$(PACKAGE_VERSION)
94 egg: $(top_srcdir)/gobject/gobject.la PKG-INFO
97 $(MKDIR_P) $(EGG_TMPDIR)
98 $(MKDIR_P) $(EGG_TMPDIR)/EGG-INFO
99 $(MAKE) -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(EGG_TMPDIR)
100 $(INSTALL) dsextras.py $(EGG_TMPDIR)
101 rm -fr $(EGG_TMPDIR)/gobject.la
102 $(INSTALL) PKG-INFO $(EGG_TMPDIR)/EGG-INFO
103 echo "gobject.so" >> $(EGG_TMPDIR)/EGG-INFO/native_libs.txt
104 ( echo "gobject" ; echo "dsextras.py" ) >> $(EGG_TMPDIR)/EGG-INFO/top_level.txt
105 cd $(EGG_TMPDIR) && zip -rq $(EGG_NAME) .
106 mv $(EGG_TMPDIR)/$(EGG_NAME) .
111 cp -r docs/html/*.html pygobject
112 cp -r docs/html/*.sgml pygobject
113 cp -r docs/html/*.devhelp pygobject
114 cp -r docs/style.css pygobject
115 tar cfz $(PACKAGE)-docs.tar.gz pygobject
119 @ROOT=`svn info --xml|egrep ^"<url>"|cut -d\> -f2|cut -d\< -f1`; \
120 SVNVERSION=`echo $(VERSION)|sed s/\\\./_/g`;\
121 echo "* Tagging $(VERSION)"; \
122 svn cp -m "Tag $(VERSION)" \
124 svn+ssh://johan@svn.gnome.org/svn/pygobject/tags/PYGOBJECT_$$SVNVERSION
131 @if test -d "$(srcdir)/.git"; then \
132 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log PYGOBJECT_2_17_0^^.. --stat) | fmt --split-only > $@.tmp \
135 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
136 (test -f $@ || echo git-log is required to generate this file >> $@)); \
139 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
140 echo A git checkout and git-log is required to generate this file >> $@); \
145 if test $(srcdir) = .; then :; else \
146 rm -f $(BUILT_EXTRA_DIST); \
149 dist-hook: $(BUILT_EXTRA_DIST)
150 files='$(BUILT_EXTRA_DIST)'; \
151 for f in $$files; do \
152 if test -f $$f; then d=.; else d=$(srcdir); fi; \
153 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done
156 cd tests && $(MAKE) check.gdb
159 cd tests && $(MAKE) check.valgrind
162 -include $(top_srcdir)/git.mk