From fde76f8e70465c863ad3f194ba8b383ec9ef9a5e Mon Sep 17 00:00:00 2001 From: caremoli Date: Thu, 22 Jan 2009 13:06:13 +0000 Subject: [PATCH] CCAR: modify swig generation rule to add .py in dependencies so that make dist and make distcheck work even if some files (generated .py) are missing. --- src/Batch_SWIG/Makefile.am | 11 ++++++----- src/Communication_SWIG/Makefile.am | 11 ++++++----- src/LifeCycleCORBA_SWIG/Makefile.am | 11 ++++++----- src/NOTIFICATION_SWIG/Makefile.am | 12 +++++++----- 4 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/Batch_SWIG/Makefile.am b/src/Batch_SWIG/Makefile.am index 645567f97..3f4539a2b 100644 --- a/src/Batch_SWIG/Makefile.am +++ b/src/Batch_SWIG/Makefile.am @@ -49,14 +49,14 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am # The library will be installed in the common place. # -BUILT_SOURCES = swig_wrap.cpp +BUILT_SOURCES = swig_wrap.cpp libBatch_Swig.py SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../Batch -SWIG_SOURCES = libBatch_Swig.i libBatch_Swig_exception.i libBatch_Swig_typemap.i +SWIGSOURCES = libBatch_Swig.i libBatch_Swig_exception.i libBatch_Swig_typemap.i salomepython_PYTHON = libBatch_Swig.py salomepyexec_LTLIBRARIES = _libBatch_Swig.la -_libBatch_Swig_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES) +_libBatch_Swig_la_SOURCES = swig_wrap.cpp _libBatch_Swig_la_CPPFLAGS = @PYTHON_INCLUDES@ -I$(srcdir) -I$(srcdir)/../Batch _libBatch_Swig_la_LDFLAGS = -module _libBatch_Swig_la_LIBADD = ../Batch/libSalomeBatch.la @PYTHON_LIBS@ @@ -66,11 +66,12 @@ _libBatch_Swig_la_CPPFLAGS += @OPENPBS_INCLUDES@ _libBatch_Swig_la_LIBADD += @OPENPBS_LIBDIR@ @OPENPBS_LIBS@ endif -swig_wrap.cpp : $(SWIG_SOURCES) - $(SWIG) $(SWIG_FLAGS) -o $@ $< +swig_wrap.cpp libBatch_Swig.py : $(SWIGSOURCES) + $(SWIG) $(SWIG_FLAGS) -o swig_wrap.cpp $< CLEANFILES = swig_wrap.cpp +EXTRA_DIST = $(SWIGSOURCES) # # =============================================================== diff --git a/src/Communication_SWIG/Makefile.am b/src/Communication_SWIG/Makefile.am index 8c66bb02e..48ef7c401 100644 --- a/src/Communication_SWIG/Makefile.am +++ b/src/Communication_SWIG/Makefile.am @@ -49,15 +49,15 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am # The library will be installed in the common place. # -BUILT_SOURCES = swig_wrap.cpp +BUILT_SOURCES = swig_wrap.cpp libSALOME_Comm.py SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../Communication -SWIG_SOURCES = libSALOME_Comm.i +SWIGSOURCES = libSALOME_Comm.i salomepython_PYTHON = libSALOME_Comm.py salomepyexec_LTLIBRARIES = _libSALOME_Comm.la -_libSALOME_Comm_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES) +_libSALOME_Comm_la_SOURCES = swig_wrap.cpp _libSALOME_Comm_la_CPPFLAGS =\ @PYTHON_INCLUDES@ \ -I$(srcdir) -I$(srcdir)/../Communication \ @@ -81,11 +81,12 @@ _libSALOME_Comm_la_LIBADD+=@MPI_LIBS@ endif -swig_wrap.cpp : $(SWIG_SOURCES) - $(SWIG) $(SWIG_FLAGS) -o $@ $< +swig_wrap.cpp libSALOME_Comm.py : $(SWIGSOURCES) + $(SWIG) $(SWIG_FLAGS) -o swig_wrap.cpp $< CLEANFILES = swig_wrap.cpp +EXTRA_DIST = $(SWIGSOURCES) # # =============================================================== diff --git a/src/LifeCycleCORBA_SWIG/Makefile.am b/src/LifeCycleCORBA_SWIG/Makefile.am index 7c694fc07..b0cd8a499 100644 --- a/src/LifeCycleCORBA_SWIG/Makefile.am +++ b/src/LifeCycleCORBA_SWIG/Makefile.am @@ -49,14 +49,14 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am # The library will be installed in the same place. # -BUILT_SOURCES = swig_wrap.cpp +BUILT_SOURCES = swig_wrap.cpp libSALOME_LifeCycleCORBA.py SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../LifeCycleCORBA -I$(srcdir)/../Utils -SWIG_SOURCES = libSALOME_LifeCycleCORBA.i +SWIGSOURCES = libSALOME_LifeCycleCORBA.i salomepython_PYTHON = libSALOME_LifeCycleCORBA.py salomepyexec_LTLIBRARIES = _libSALOME_LifeCycleCORBA.la -_libSALOME_LifeCycleCORBA_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES) +_libSALOME_LifeCycleCORBA_la_SOURCES = swig_wrap.cpp _libSALOME_LifeCycleCORBA_la_CPPFLAGS =\ @PYTHON_INCLUDES@ \ -I$(srcdir) \ @@ -74,11 +74,12 @@ _libSALOME_LifeCycleCORBA_la_LIBADD = \ ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \ @PYTHON_LIBS@ -swig_wrap.cpp : $(SWIG_SOURCES) - $(SWIG) $(SWIG_FLAGS) -o $@ $< +swig_wrap.cpp libSALOME_LifeCycleCORBA.py : $(SWIGSOURCES) + $(SWIG) $(SWIG_FLAGS) -o swig_wrap.cpp $< CLEANFILES = swig_wrap.cpp +EXTRA_DIST = $(SWIGSOURCES) # # =============================================================== diff --git a/src/NOTIFICATION_SWIG/Makefile.am b/src/NOTIFICATION_SWIG/Makefile.am index 6f2c9835c..ee4ffadf8 100644 --- a/src/NOTIFICATION_SWIG/Makefile.am +++ b/src/NOTIFICATION_SWIG/Makefile.am @@ -34,14 +34,14 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm) # see also LifeCycleCORBA_SWIG # -BUILT_SOURCES = swig_wrap.cpp +BUILT_SOURCES = swig_wrap.cpp libNOTIFICATION.py SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../Notification -SWIG_SOURCES = NOTIFICATION.i +SWIGSOURCES = NOTIFICATION.i salomepython_PYTHON = libNOTIFICATION.py salomepyexec_LTLIBRARIES = _libNOTIFICATION.la -_libNOTIFICATION_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES) \ +_libNOTIFICATION_la_SOURCES = swig_wrap.cpp \ NOTIFICATION_Swig.cxx NOTIFICATION_Swig.hxx SALOME_NOTIFICATION_SWIG.hxx _libNOTIFICATION_la_CPPFLAGS =\ @PYTHON_INCLUDES@ -DHAVE_CONFIG_H \ @@ -55,7 +55,9 @@ _libNOTIFICATION_la_CPPFLAGS =\ _libNOTIFICATION_la_LDFLAGS = -module _libNOTIFICATION_la_LIBADD = ../Notification/libSalomeNotification.la -swig_wrap.cpp : $(SWIG_SOURCES) - $(SWIG) $(SWIG_FLAGS) -o $@ $< +swig_wrap.cpp libNOTIFICATION.py : $(SWIGSOURCES) + $(SWIG) $(SWIG_FLAGS) -o swig_wrap.cpp $< CLEANFILES = swig_wrap.cpp + +EXTRA_DIST = $(SWIGSOURCES) -- 2.39.2