1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
4 SUBDIRS = examples gi tests
9 `find "$(builddir)" -type f -name "*.pyc" -print`
13 pygobject-$(PLATFORM_VERSION).pc.in \
20 MAINTAINERCLEANFILES = \
22 $(srcdir)/aclocal.m4 \
23 $(srcdir)/autoscan.log \
25 $(srcdir)/config.guess \
26 $(srcdir)/config.h.in \
27 $(srcdir)/config.sub \
28 $(srcdir)/configure.scan \
30 $(srcdir)/install-sh \
33 $(srcdir)/mkinstalldirs \
35 $(srcdir)/xmldocs.make \
36 $(srcdir)/gtk-doc.make \
38 $(srcdir)/py-compile \
39 $(srcdir)/m4/libtool.m4 \
40 $(srcdir)/m4/ltoptions.m4 \
41 $(srcdir)/m4/ltsugar.m4 \
42 $(srcdir)/m4/ltversion.m4 \
43 $(srcdir)/m4/lt~obsolete.m4 \
44 `find "$(srcdir)" -type f -name Makefile.in -print` \
45 `find "$(builddir)" -type f -name "*.pyc" -print`
51 pkgconfigdir = $(libdir)/pkgconfig
52 pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc
59 EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM)
62 $(mkinstalldirs) $(DESTDIR)$(pyexecdir)
63 cp $(top_builddir)/PKG-INFO $(DESTDIR)$(pyexecdir)/$(EGG_NAME).egg-info
65 $(mkinstalldirs) $(DESTDIR)$(pyexecdir)
67 rm -f $(DESTDIR)$(pyexecdir)/$(EGG_NAME).egg-info
69 egg: EGG_TMPDIR:=$(TMPDIR)/$(PACKAGE)-$(PACKAGE_VERSION)
70 egg: $(top_srcdir)/gobject/gobject.la PKG-INFO
73 $(MKDIR_P) $(EGG_TMPDIR)
74 $(MKDIR_P) $(EGG_TMPDIR)/EGG-INFO
75 $(MAKE) -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(EGG_TMPDIR)
76 rm -fr $(EGG_TMPDIR)/gobject.la
77 $(INSTALL) PKG-INFO $(EGG_TMPDIR)/EGG-INFO
78 echo "gobject.so" >> $(EGG_TMPDIR)/EGG-INFO/native_libs.txt
79 ( echo "gobject" ) >> $(EGG_TMPDIR)/EGG-INFO/top_level.txt
80 cd $(EGG_TMPDIR) && zip -rq $(EGG_NAME).egg .
81 mv $(EGG_TMPDIR)/$(EGG_NAME).egg .
86 cp -r docs/html/*.html pygobject
87 cp -r docs/html/*.sgml pygobject
88 cp -r docs/html/*.devhelp pygobject
89 cp -r docs/style.css pygobject
90 tar cfz $(PACKAGE)-docs.tar.gz pygobject
94 printf "%-8s%s\n" "$(VERSION)" "`LC_TIME=C date '+%d-%b-%Y'`" > NEWS.tmp
96 @echo -e "\n\n\nFor blogging, you can copy&paste this HTML formatted news:"
97 @echo "-------------- 8< -------------"
98 @last=`head -n1 NEWS | cut -f1 -d' '`; \
100 for commit in `git rev-list $$last..`; do \
101 data=`git log --format="format:%s%n%an%n%b" $$commit^..$$commit`; \
102 echo "$$data" | perl -e '$$subj = <>; chomp $$subj; $$author = <>; chomp $$author; while (<>) { if (/bugzilla.gnome.org.*id=([0-9]+)/) { $$bug = $$1 }}; print " <li>$$subj ($$author)"; if ($$bug) { print " (<a href=\"https://bugzilla.gnome.org/show_bug.cgi?id=$$bug\">#$$bug</a>)"; }; print "</li>\n"'; \
103 echo "$$data" | perl -e '$$subj = <>; chomp $$subj; $$author = <>; chomp $$author; while (<>) { if (/bugzilla.gnome.org.*id=([0-9]+)/) { $$bug = $$1 }}; print " - $$subj ($$author)"; if ($$bug) { print " (#$$bug)"; }; print "\n"' >> NEWS.tmp; \
106 @echo "-------------- 8< -------------"
109 @cat NEWS >> NEWS.tmp
112 .PHONY: ChangeLog release-news
116 @if test -d "$(srcdir)/.git"; then \
117 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log PYGOBJECT_2_17_0^^.. --stat) | fmt --split-only > $@.tmp \
120 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
121 (test -f $@ || echo git-log is required to generate this file >> $@)); \
124 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
125 echo A git checkout and git-log is required to generate this file >> $@); \
130 if test $(srcdir) = .; then :; else \
131 rm -f $(BUILT_EXTRA_DIST); \
134 dist-hook: $(BUILT_EXTRA_DIST)
135 files='$(BUILT_EXTRA_DIST)'; \
136 for f in $$files; do \
137 if test -f $$f; then d=.; else d=$(srcdir); fi; \
138 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done
141 cd tests && $(MAKE) check.gdb
144 cd tests && $(MAKE) check.nemiver
147 cd tests && $(MAKE) check.valgrind