~ubuntu-branches/ubuntu/dapper/lasso/dapper

« back to all changes in this revision

Viewing changes to python/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Loic Pefferkorn
  • Date: 2005-11-25 19:20:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051125192059-m4894lhpynmkrmwr
Tags: 0.6.3-4ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
_lasso_la_LDFLAGS = -no-undefined -module -avoid-version
18
18
endif
19
19
endif
20
 
lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i \
21
 
                $(top_srcdir)/swig/inheritance.h
 
20
SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
 
21
lasso_wrap.c lasso.py: $(SWIG_I_FILES)
22
22
        $(SWIG) -v -python -module lasso -o lasso_wrap.c $(top_srcdir)/swig/Lasso.i
23
23
        cp lasso_wrap.c lasso_wrap.c.bak
24
 
        sed -e 's/free(result)/g_free(result)/' \
25
 
                        < lasso_wrap.c.bak > lasso_wrap.c
26
 
        cp lasso_wrap.c lasso_wrap.c.bak
27
24
        sed -e 's/^  int res = 0;$$//' \
28
25
                        < lasso_wrap.c.bak > lasso_wrap.c
29
26
        cp lasso_wrap.c lasso_wrap.c.bak
33
30
        grep -q "int res =" lasso_wrap.c || \
34
31
                sed -e 's/if (obj == Py_True) /int res = 0; if (obj == Py_True) /' \
35
32
                        < lasso_wrap.c.bak > lasso_wrap.c
36
 
                        
37
33
 
38
34
SWIG_OUTPUTS = lasso_wrap.c lasso.py
39
35