summaryrefslogtreecommitdiff
path: root/python/Makefile.am
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 21:42:39 -0300
committerPerberos <[email protected]>2011-12-01 21:42:39 -0300
commitfe8aea1c3b5348347633da18a02b0bffd3b266a1 (patch)
tree9881bf77df7572844707cc7c50bd8ca6b5a97076 /python/Makefile.am
downloadlibmateweather-fe8aea1c3b5348347633da18a02b0bffd3b266a1.tar.bz2
libmateweather-fe8aea1c3b5348347633da18a02b0bffd3b266a1.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'python/Makefile.am')
-rw-r--r--python/Makefile.am37
1 files changed, 37 insertions, 0 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
new file mode 100644
index 0000000..9593a7a
--- /dev/null
+++ b/python/Makefile.am
@@ -0,0 +1,37 @@
+if BUILD_PYTHON
+INCLUDES = \
+ -I$(top_srcdir) \
+ $(PYTHON_INCLUDES) \
+ $(PYGOBJECT_CFLAGS) \
+ $(GTK_CFLAGS)
+
+pyunstabledir = $(pyexecdir)/mateweather/I_KNOW_THIS_IS_UNSTABLE
+pyunstable_LTLIBRARIES = mateweather.la
+mateweather_la_LDFLAGS = -module -avoid-version -export-symbols-regex initmateweather
+mateweather_la_LIBADD = ../libmateweather/libmateweather.la
+mateweather_la_SOURCES = mateweathermodule.c
+nodist_mateweather_la_SOURCES = mateweather.c
+mateweather.c: mateweather.defs mateweather.override
+
+.defs.c:
+ $(AM_V_GEN)(cd $(srcdir)\
+ && pygobject-codegen-2.0 \
+ --register $(PYGTK_DEFS) \
+ --override $*.override \
+ --prefix py$* $*.defs) > gen-$*.c \
+ && cp gen-$*.c $*.c \
+ && rm -f gen-$*.c
+
+install-exec-hook:
+ $(MKDIR_P) "$(DESTDIR)$(pyunstabledir)"
+ $(INSTALL_DATA) $(srcdir)/bad__init__.py "$(DESTDIR)$(pyexecdir)/mateweather/__init__.py"
+ touch $(DESTDIR)$(pyunstabledir)/__init__.py
+ chmod a+x $(DESTDIR)$(pyunstabledir)/__init__.py
+
+endif
+
+EXTRA_DIST = mateweather.defs mateweather.override bad__init__.py demo.py
+
+CLEANFILES = mateweather.c
+
+-include $(top_srcdir)/git.mk