diff swig/python/Makefile.am @ 126:0d49e1502159

- updated to latest SWIG macros - added __init__.py so generated python module loads
author Jamie Bullock <jamie@postlude.co.uk>
date Thu, 29 Mar 2012 17:24:45 +0000
parents 525bfdf936c6
children 110afbaa8aaa
line wrap: on
line diff
--- a/swig/python/Makefile.am	Thu Mar 29 12:23:04 2012 +0000
+++ b/swig/python/Makefile.am	Thu Mar 29 17:24:45 2012 +0000
@@ -3,15 +3,15 @@
 BUILT_SOURCES = $(srcdir)/xtract_wrap.c
 SWIG_SOURCES = ../xtract.i
 
-pkgpython_PYTHON = xtract.py
+pkgpython_PYTHON = xtract.py __init__.py
 pkgpyexec_LTLIBRARIES = _xtract.la
 _xtract_la_SOURCES = $(srcdir)/xtract_wrap.c $(SWIG_SOURCES)
 _xtract_la_CFLAGS = $(SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/src
 _xtract_la_LDFLAGS = -module -lxtract
 _xtract_la_LIBADD = $(top_srcdir)/src/libxtract.la
 
-xtract_wrap.c : $(SWIG_SOURCES)
-	$(SWIG) $(SWIG_PYTHON_OPT) -I$(top_srcdir) -o $@ $<
+$(srcdir)/xtract_wrap.c : $(SWIG_SOURCES)
+	$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -o $@ $<
 
 clean-local:
 	-rm -f _xtract.so xtract.py xtract_wrap.c xtract.pyc