From a02cf50c7121435a90fdd45d1d07904e93b2622f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Tue, 4 May 2010 22:18:11 +0000 Subject: [PATCH] fix simple make dist git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2906 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- bindings/Makefile.am | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bindings/Makefile.am b/bindings/Makefile.am index d930fc57b..c770208ef 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -105,9 +105,6 @@ endif if ENABLE_PYTHON -MOSTLYCLEANFILES+= hamlibpy_wrap.c Hamlib.py *.pyc -BUILT_SOURCES += hamlibpy_wrap.c Hamlib.py - python_ltlib = _Hamlib.la #pythondir = @pythondir@ @@ -118,11 +115,6 @@ _Hamlib_la_LIBADD = $(top_builddir)/src/libhamlib.la _Hamlib_ladir = $(pythondir) -Hamlib.py: hamlibpy_wrap.c -hamlibpy_wrap.c: hamlib.swg $(SWGDEP) - $(SWIG) -python @INCLUDES@ -I$(top_srcdir)/bindings -o $@ \ - `test -f hamlib.swg || echo '$(srcdir)/'`hamlib.swg - all-py: $(python_ltlib) check-py: all-py @@ -130,15 +122,23 @@ check-py: all-py python_PYTHON = Hamlib.py +_Hamlib_la_LTLIBRARIES = $(python_ltlib) + +endif + +MOSTLYCLEANFILES+= hamlibpy_wrap.c Hamlib.py *.pyc +BUILT_SOURCES += hamlibpy_wrap.c Hamlib.py + +Hamlib.py: hamlibpy_wrap.c +hamlibpy_wrap.c: hamlib.swg $(SWGDEP) + $(SWIG) -python @INCLUDES@ -I$(top_srcdir)/bindings -o $@ \ + `test -f hamlib.swg || echo '$(srcdir)/'`hamlib.swg + install-py: clean-py: distclean-py: uninstall-py: -_Hamlib_la_LTLIBRARIES = $(python_ltlib) - -endif - ########################################## lib_LTLIBRARIES = $(tcl_ltlib) # lib_LTLIBRARIES = @BINDING_LIB_TARGETS@