Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: PYGOBJECT_2_14…
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 77 lines (64 sloc) 2.028 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
AUTOMAKE_OPTIONS = 1.7

SUBDIRS = docs gobject examples tests

PLATFORM_VERSION = 2.0

CLEANFILES =
EXTRA_DIST = \
MANIFEST.in \
pygobject-$(PLATFORM_VERSION).pc.in \
PKG-INFO \
PKG-INFO.in \
setup.py \
pygobject_postinstall.py \
pygtk.py \
dsextras.py

INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -I$(top_srcdir)/gobject

# 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 =
noinst_PYTHON = ltihooks.py

# 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
TMPDIR = `pwd`/$(PACKAGE)-$(PACKAGE_VERSION)

egg: $(top_srcdir)/gobject/gobject.la PKG-INFO
rm -fr $(TMPDIR)
echo $(EGG_NAME)
mkdir -p $(TMPDIR)
mkdir -p $(TMPDIR)/EGG-INFO
make -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(TMPDIR)
$(INSTALL) dsextras.py $(TMPDIR)
rm -fr $(TMPDIR)/gobject.la
$(INSTALL) PKG-INFO $(TMPDIR)/EGG-INFO
echo "gobject.so" >> $(TMPDIR)/EGG-INFO/native_libs.txt
echo "gobject" >> $(TMPDIR)/EGG-INFO/top_level.txt
echo "dsextras.py" >> $(TMPDIR)/EGG-INFO/top_level.txt
cd $(TMPDIR) && zip -rq $(EGG_NAME) .
mv $(TMPDIR)/$(EGG_NAME) .
rm -fr $(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
Something went wrong with that request. Please try again.