Commit c23457d36c84690f6f0d85bf947225488145d54b

Authored by Jürgen Knödlseder
1 parent ad8d4535

Correct Swig rule to avoid double building.

Showing 1 changed file with 2 additions and 2 deletions
pyext/Makefile.am
@@ -69,9 +69,9 @@ clean-local: @@ -69,9 +69,9 @@ clean-local:
69 rm -rf build _ctools.so 69 rm -rf build _ctools.so
70 70
71 # Rule for building Python wrappers using SWIG. 71 # Rule for building Python wrappers using SWIG.
72 -#$(SWIG) -c++ -python -Wall -I$(prefix)/share/gammalib/swig -I$(GAMMALIB)/share/gammalib/swig -o ctools_wrap.cpp -outdir . $(srcdir)/$(SWIG_INTERFACE)  
73 if HAVE_SWIG 72 if HAVE_SWIG
74 -ctools_wrap.cpp ctools.py: $(SWIG_INTERFACE) 73 +ctools.py: ctools_wrap.cpp
  74 +ctools_wrap.cpp: $(SWIG_INTERFACE)
75 if $(SWIGCOMPILE) -MMD -MF "ctools.Tpi" -o ctools_wrap.cpp $<; \ 75 if $(SWIGCOMPILE) -MMD -MF "ctools.Tpi" -o ctools_wrap.cpp $<; \
76 then mv -f "ctools.Tpi" "ctools.Pi"; else rm -f "ctools.Tpi"; exit 1; fi 76 then mv -f "ctools.Tpi" "ctools.Pi"; else rm -f "ctools.Tpi"; exit 1; fi
77 endif # HAVE_SWIG 77 endif # HAVE_SWIG