Commit 2e3f2cc733a7734aaa072f5ee388101f2e88cd95
1 parent
557765fe
Correct rules for instrument specific modules.
On Linux systems, swig was executed twice for instrument specific modules. This was related to the fact that 2 targets have been specified on the left side. It's not clear why this does not appear for the core modules, but it doesn't. Splitting the 2 targets into 2 rules solves the problem.
Showing
1 changed file
with
6 additions
and
3 deletions
pyext/Makefile.am
| ... | ... | @@ -106,21 +106,24 @@ swig: $(BUILT_SOURCES) |
| 106 | 106 | |
| 107 | 107 | # Rule for MWL module |
| 108 | 108 | if WITH_INST_MWL |
| 109 | -gammalib/mwl_wrap.cpp gammalib/mwl.py: $(top_srcdir)/inst/mwl/pyext/mwl.i | |
| 109 | +gammalib/mwl.py: gammalib/mwl_wrap.cpp | |
| 110 | +gammalib/mwl_wrap.cpp: $(top_srcdir)/inst/mwl/pyext/mwl.i | |
| 110 | 111 | if $(SWIGCOMPILE) -MMD -MF "gammalib/mwl.Tpi" -o gammalib/mwl_wrap.cpp -outdir gammalib $<; \ |
| 111 | 112 | then mv -f "gammalib/mwl.Tpi" "gammalib/mwl.Pi"; else rm -f "gammalib/mwl.Tpi"; exit 1; fi |
| 112 | 113 | endif |
| 113 | 114 | |
| 114 | 115 | # Rule for CTA module |
| 115 | 116 | if WITH_INST_CTA |
| 116 | -gammalib/cta_wrap.cpp gammalib/cta.py: $(top_srcdir)/inst/cta/pyext/cta.i | |
| 117 | +gammalib/cta.py: gammalib/cta_wrap.cpp | |
| 118 | +gammalib/cta_wrap.cpp: $(top_srcdir)/inst/cta/pyext/cta.i | |
| 117 | 119 | if $(SWIGCOMPILE) -MMD -MF "gammalib/cta.Tpi" -o gammalib/cta_wrap.cpp -outdir gammalib $<; \ |
| 118 | 120 | then mv -f "gammalib/cta.Tpi" "gammalib/cta.Pi"; else rm -f "gammalib/cta.Tpi"; exit 1; fi |
| 119 | 121 | endif |
| 120 | 122 | |
| 121 | 123 | # Rule for LAT module |
| 122 | 124 | if WITH_INST_LAT |
| 123 | -gammalib/lat_wrap.cpp gammalib/lat.py: $(top_srcdir)/inst/lat/pyext/lat.i | |
| 125 | +gammalib/lat.py: gammalib/lat_wrap.cpp | |
| 126 | +gammalib/lat_wrap.cpp: $(top_srcdir)/inst/lat/pyext/lat.i | |
| 124 | 127 | if $(SWIGCOMPILE) -MMD -MF "gammalib/lat.Tpi" -o gammalib/lat_wrap.cpp -outdir gammalib $<; \ |
| 125 | 128 | then mv -f "gammalib/lat.Tpi" "gammalib/lat.Pi"; else rm -f "gammalib/lat.Tpi"; exit 1; fi |
| 126 | 129 | endif | ... | ... |