aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/Makefile.am
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-06 19:14:42 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-03-06 19:14:42 -0600
commit5ab2da4018b3709f48f6688dcbda728f096ffc18 (patch)
tree98b3a3ec62a6392b0be54e6a9069d2a190cbb9b3 /bindings/python/Makefile.am
parent865583222d8d7394c1a0597f0dd6b47e20896894 (diff)
downloadlibayatana-appindicator-5ab2da4018b3709f48f6688dcbda728f096ffc18.tar.gz
libayatana-appindicator-5ab2da4018b3709f48f6688dcbda728f096ffc18.tar.bz2
libayatana-appindicator-5ab2da4018b3709f48f6688dcbda728f096ffc18.zip
generate app-indicator.sources.xml (for mono bindings) and appindicator.override (for python bindings) at configure time so that they can take into account top_builddir vs top_srcdir differences.
Diffstat (limited to 'bindings/python/Makefile.am')
-rw-r--r--bindings/python/Makefile.am9
1 files changed, 4 insertions, 5 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index 7febc11..fe95c02 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -25,16 +25,15 @@ _appindicator_la_SOURCES = appindicatormodule.c
nodist__appindicator_la_SOURCES = appindicator.c
CLEANFILES = appindicator.c
-EXTRA_DIST = appindicator.override appindicator-arg-types.py $(defs_DATA)
+EXTRA_DIST = appindicator.override.in appindicator-arg-types.py $(defs_DATA)
appindicator.c: $(defs_DATA) appindicator.override
%.c: %.defs
- (cd $(srcdir) \
- && $(PYGTK_CODEGEN) \
+ ($(PYGTK_CODEGEN) \
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
- --load-types appindicator-arg-types.py \
+ --load-types $(srcdir)/appindicator-arg-types.py \
--override $*.override \
- --prefix py$* $*.defs) > gen-$*.c \
+ --prefix py$* $(srcdir)/$*.defs) > gen-$*.c \
&& cp gen-$*.c $*.c \
&& rm -f gen-$*.c