ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AUTOMAKE_OPTIONS = 1.7 # Limit PyFlakes and PEP8 to these directories. pycheck_dirs = examples gi tests pygtkcompat # Part of the gi subdirectory is handled with non-recursive make to avoid # py-compile getting confused between gi/types.py and Python's standard # types module. SUBDIRS = . $(pycheck_dirs) PLATFORM_VERSION = 3.0 CLEANFILES = \ `find "$(builddir)" -type f -name "*.pyc" -print` EXTRA_DIST = \ autogen.sh \ pygobject.doap \ pygobject-$(PLATFORM_VERSION).pc.in \ PKG-INFO \ PKG-INFO.in \ pygi-convert.sh \ m4/as-ac-expand.m4 \ m4/jhflags.m4 \ m4/python.m4 MAINTAINERCLEANFILES = \ $(srcdir)/INSTALL \ $(srcdir)/aclocal.m4 \ $(srcdir)/autoscan.log \ $(srcdir)/compile \ $(srcdir)/config.guess \ $(srcdir)/config.h.in \ $(srcdir)/config.sub \ $(srcdir)/configure.scan \ $(srcdir)/depcomp \ $(srcdir)/install-sh \ $(srcdir)/ltmain.sh \ $(srcdir)/missing \ $(srcdir)/mkinstalldirs \ $(srcdir)/omf.make \ $(srcdir)/xmldocs.make \ $(srcdir)/gtk-doc.make \ $(srcdir)/ChangeLog \ $(srcdir)/py-compile \ $(srcdir)/m4/libtool.m4 \ $(srcdir)/m4/ltoptions.m4 \ $(srcdir)/m4/ltsugar.m4 \ $(srcdir)/m4/ltversion.m4 \ $(srcdir)/m4/lt~obsolete.m4 \ `find "$(srcdir)" -type f -name Makefile.in -print` \ `find "$(builddir)" -type f -name "*.pyc" -print` BUILT_EXTRA_DIST = \ ChangeLog nobase_pyexec_PYTHON = \ gi/__init__.py \ gi/types.py \ gi/module.py \ gi/importer.py \ gi/pygtkcompat.py \ gi/docstring.py \ gi/_constants.py \ gi/_propertyhelper.py \ gi/_signalhelper.py \ gi/_option.py \ gi/_error.py # if we build in a separate tree, we need to symlink the *.py files from the # source tree; Python does not accept the extensions and modules in different # paths build_pylinks: for f in $(nobase_pyexec_PYTHON); do \ [ -e $(builddir)/$$f ] || \ $(LN_S) $(abs_srcdir)/$$f $(builddir)/$$f; \ done all-local: build_pylinks check-local: build_pylinks if WITH_COMMON # pkg-config files pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc endif # python pyexec_LTLIBRARIES = # install pth file. EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM) install-data-local: $(mkinstalldirs) $(DESTDIR)$(pyexecdir) cp $(top_builddir)/PKG-INFO $(DESTDIR)$(pyexecdir)/$(EGG_NAME).egg-info install-exec-local: $(mkinstalldirs) $(DESTDIR)$(pyexecdir) uninstall-local: rm -f $(DESTDIR)$(pyexecdir)/$(EGG_NAME).egg-info egg: EGG_TMPDIR:=$(TMPDIR)/$(PACKAGE)-$(PACKAGE_VERSION) egg: $(top_srcdir)/gobject/gobject.la PKG-INFO rm -fr $(EGG_TMPDIR) echo $(EGG_NAME).egg $(MKDIR_P) $(EGG_TMPDIR) $(MKDIR_P) $(EGG_TMPDIR)/EGG-INFO $(MAKE) -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(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" ) >> $(EGG_TMPDIR)/EGG-INFO/top_level.txt cd $(EGG_TMPDIR) && zip -rq $(EGG_NAME).egg . mv $(EGG_TMPDIR)/$(EGG_NAME).egg . rm -fr $(EGG_TMPDIR) doc-dist: mkdir pygobject cp -r docs/html/*.html pygobject cp -r docs/html/*.sgml pygobject cp -r docs/html/*.devhelp pygobject cp -r docs/style.css pygobject tar cfz $(PACKAGE)-docs.tar.gz pygobject rm -fr pygobject release-news: printf "%-8s%s\n" "$(VERSION)" "`LC_TIME=C date '+%d-%b-%Y'`" > NEWS.tmp @echo -e "\n\n\nFor blogging, you can copy&paste this HTML formatted news:" @echo "-------------- 8< -------------" @last=`head -n1 $(top_srcdir)/NEWS | cut -f1 -d' '`; \ echo "