diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 02:21:24 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 02:21:24 +0900 |
commit | c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3 (patch) | |
tree | 1436172370a45714687122f914354ad167a2f528 /Makefile.am | |
parent | f7d643cbb2184346b6f8d26091eb7eb38c6bbfe1 (diff) | |
download | pygobject2-c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3.tar.gz pygobject2-c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3.tar.bz2 pygobject2-c6b9e84f2f7f8c85939a8e5ff5d8a5aa067cecf3.zip |
Tizen 2.1 basesubmit/tizen_2.1/20130425.060530submit/tizen_2.1/20130424.235900submit/tizen/20130517.051955accepted/tizen_2.1/20130425.021253accepted/tizen/20130520.1018302.1b_releasetizen_2.1
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..f68b338 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,120 @@ +ACLOCAL_AMFLAGS = -I m4 +AUTOMAKE_OPTIONS = 1.7 + +SUBDIRS = docs codegen glib gobject gio examples tests + +PLATFORM_VERSION = 2.0 + +CLEANFILES = +EXTRA_DIST = \ + MANIFEST.in \ + README.win32 \ + pygobject-$(PLATFORM_VERSION).pc.in \ + PKG-INFO \ + PKG-INFO.in \ + setup.py \ + pygobject_postinstall.py \ + pygtk.py \ + dsextras.py \ + ChangeLog.pre-2.18 \ + m4/as-ac-expand.m4 \ + m4/jhflags.m4 \ + m4/python.m4 + +BUILT_EXTRA_DIST = \ + ChangeLog + +INCLUDES = -I$(top_srcdir)/gobject $(PYTHON_INCLUDES) $(GLIB_CFLAGS) + +# pkg-config files +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc + +# python modules +pkgpyexecdir = $(pyexecdir)/gtk-2.0 +pkgpyexec_PYTHON = dsextras.py +pkgpyexec_LTLIBRARIES = + +# python +pyexec_PYTHON = pygtk.py +pyexec_LTLIBRARIES = + +# 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 + +EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM).egg + +egg: EGG_TMPDIR:=$(TMPDIR)/$(PACKAGE)-$(PACKAGE_VERSION) +egg: $(top_srcdir)/gobject/gobject.la PKG-INFO + rm -fr $(EGG_TMPDIR) + echo $(EGG_NAME) + $(MKDIR_P) $(EGG_TMPDIR) + $(MKDIR_P) $(EGG_TMPDIR)/EGG-INFO + $(MAKE) -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(EGG_TMPDIR) + $(INSTALL) dsextras.py $(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" ; echo "dsextras.py" ) >> $(EGG_TMPDIR)/EGG-INFO/top_level.txt + cd $(EGG_TMPDIR) && zip -rq $(EGG_NAME) . + mv $(EGG_TMPDIR)/$(EGG_NAME) . + 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-tag: + @ROOT=`svn info --xml|egrep ^"<url>"|cut -d\> -f2|cut -d\< -f1`; \ + SVNVERSION=`echo $(VERSION)|sed s/\\\./_/g`;\ + echo "* Tagging $(VERSION)"; \ + svn cp -m "Tag $(VERSION)" \ + $$ROOT \ + svn+ssh://johan@svn.gnome.org/svn/pygobject/tags/PYGOBJECT_$$SVNVERSION + + +.PHONY: ChangeLog + +ChangeLog: + @echo Creating $@ + @if test -d "$(srcdir)/.git"; then \ + (GIT_DIR=$(top_srcdir)/.git ./missing --run git log PYGOBJECT_2_17_0^^.. --stat) | fmt --split-only > $@.tmp \ + && mv -f $@.tmp $@ \ + || ($(RM) $@.tmp; \ + echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ + (test -f $@ || echo git-log is required to generate this file >> $@)); \ + else \ + test -f $@ || \ + (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ + echo A git checkout and git-log is required to generate this file >> $@); \ + fi + + +distclean-local: + if test $(srcdir) = .; then :; else \ + rm -f $(BUILT_EXTRA_DIST); \ + fi + +dist-hook: $(BUILT_EXTRA_DIST) + files='$(BUILT_EXTRA_DIST)'; \ + for f in $$files; do \ + if test -f $$f; then d=.; else d=$(srcdir); fi; \ + rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done |