summaryrefslogtreecommitdiffstats
path: root/bindings/python/Makefile.am
diff options
context:
space:
mode:
authorNicholas Piper <nicholas@users.sourceforge.net>2006-12-11 23:51:15 +0000
committerNicholas Piper <nicholas@users.sourceforge.net>2006-12-11 23:51:15 +0000
commitec9c113ee2243246e42f33783cdeb7a11eb6955d (patch)
treebaf7ff6bcd404efe12ccbc04d3fe297b76c583aa /bindings/python/Makefile.am
parent4a7da9d7006edded9b30f7beb57da03596ea05ef (diff)
downloadlibgpod-ec9c113ee2243246e42f33783cdeb7a11eb6955d.tar.gz
libgpod-ec9c113ee2243246e42f33783cdeb7a11eb6955d.tar.xz
libgpod-ec9c113ee2243246e42f33783cdeb7a11eb6955d.zip
Add README.in - thanks to Todd Zullinger
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1343 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'bindings/python/Makefile.am')
-rw-r--r--bindings/python/Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index ceaa1fa..642bdca 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -14,6 +14,9 @@ CLEANFILES = \
gpod_wrap.c \
gpod_wrap.o
+MAINTAINERCLEANFILES = \
+ README
+
if HAVE_PYTHON
MODULE_CFLAGS = `$(PKG_CONFIG) --cflags $(top_srcdir)/libgpod-1.0.pc` $(PYTHON_INCLUDES)
MODULE_LIBS = `$(PKG_CONFIG) --libs $(top_srcdir)/libgpod-1.0.pc` -L$(top_srcdir)/src/.libs
@@ -41,6 +44,14 @@ install-pythonDATA: $(python_DATA)
uninstall-pythonDATA: $(python_DATA)
rm -rf $(DESTDIR)$(pythondir)/gpod
+README: README.in gpod.i
+ WRAPPER_LIST=`grep 'PyObject\* sw_[^_].*;' gpod.i | awk -F "[ (]" '{ print $$2 }' | tr '\n' ' ' | sort -u`; \
+ sed \
+ -e "s/@WRAPPER_LIST@/$${WRAPPER_LIST}/" \
+ -e "/^sw_/ s/ $$//" \
+ -e "/^sw_/ s/ /\n/g" \
+ $< > $@
+
test:
cd tests && python tests.py
endif