diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-09-02 17:47:59 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-09-02 17:47:59 +0000 |
commit | 3038de92edc33856677974eef978675608370dc4 (patch) | |
tree | 8b973eea5c713bfe1cb518e6737d8e1e917d24d6 /python/Makefile.am | |
parent | c4b7d3d6c32de33b4071e6755b172417064bde2c (diff) | |
download | lasso-3038de92edc33856677974eef978675608370dc4.tar.gz lasso-3038de92edc33856677974eef978675608370dc4.tar.xz lasso-3038de92edc33856677974eef978675608370dc4.zip |
things were overcomplicated; simplify a bit (for example the DEPDIR dirty
things was necessary because variables were overused; ask me for details if you
want)
Diffstat (limited to 'python/Makefile.am')
-rw-r--r-- | python/Makefile.am | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/python/Makefile.am b/python/Makefile.am index 515d876d..893f623d 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -4,37 +4,18 @@ pythondir= $(PY_SITE_PACKAGES) python_DATA = lasso.py python_LTLIBRARIES = _lasso.la -PYTHON_PACKAGE=lasso +_lasso_la_SOURCES = lasso_wrap.c +_lasso_la_CFLAGS = $(LASSO_CFLAGS) -DSWIG_COBJECT_TYPES $(PY_CFLAGS) +_lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) +_lasso_la_LDFLAGS = -no-undefined -module -avoid-version -_lasso_la_SOURCES = $(PYTHON_PACKAGE)_wrap.c - -_lasso_la_CFLAGS = $(LASSO_CFLAGS) \ - -DSWIG_COBJECT_TYPES \ - $(PY_CFLAGS) - -_lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la \ - $(LASSO_LIBS) - -_lasso_la_LDFLAGS = -no-undefined \ - -module -avoid-version - -$(PYTHON_PACKAGE)_wrap.c $(PYTHON_PACKAGE).py: $(top_srcdir)/swig/Lasso.i - $(SWIG) -v -python -module $(PYTHON_PACKAGE) -o $(PYTHON_PACKAGE)_wrap.c $< - -# Dirty hack, another better way ? -$(DEPDIR)/_$(PYTHON_PACKAGE)_la-$(PYTHON_PACKAGE)_wrap.Plo: - mkdir -p $(DEPDIR) - echo "#dummy" > $(DEPDIR)/_$(PYTHON_PACKAGE)_la-$(PYTHON_PACKAGE)_wrap.Plo - -SWIG_OUTPUTS = $(PYTHON_PACKAGE)_wrap.c $(PYTHON_PACKAGE).py +lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i + $(SWIG) -v -python -module lasso -o lasso_wrap.c $< +SWIG_OUTPUTS = lasso_wrap.c lasso.py # In distribution, swig generated files are present. EXTRA_DIST = $(SWIG_OUTPUTS) -# In case of.... -CLEANFILES = *.pyc - # Maintainer clean the swig generated files, because he/she maintains them. MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) - |