Revision b2b48af1

b/Makefile.swig.gen.t
72 72
## .h file is sometimes built, but not always ... so that one has to
73 73
## be added manually by the including Makefile.am .
74 74

75
swig_built_sources += @NAME@.py @NAME@.cc
75
swig_built_sources += @NAME@.py @NAME@-python.cc
76 76

77 77
## Various SWIG variables.  These can be overloaded in the including
78 78
## Makefile.am by setting the variable value there, then including
......
86 86
	_@NAME@.la
87 87

88 88
_@NAME@_la_SOURCES = 			\
89
	@NAME@.cc			\
89
	@NAME@-python.cc			\
90 90
	$(@NAME@_la_swig_sources)
91 91

92 92
_@NAME@_la_LIBADD =			\
......
107 107

108 108
## Entry rule for running SWIG
109 109

110
@NAME@.h @NAME@.py @NAME@.cc: @NAME@.i
110
@NAME@.h @NAME@.py @NAME@-python.cc: @NAME@.i
111 111
## This rule will get called only when MAKE decides that one of the
112 112
## targets needs to be created or re-created, because:
113 113
##
......
159 159
##
160 160
## Remove the stamp associated with this filename.
161 161
##
162
		rm -f $(DEPDIR)/@NAME@-generate-stamp; \
162
		rm -f $(DEPDIR)/@NAME@-generate-*stamp; \
163 163
##
164 164
## Tell MAKE to run the rule for creating this stamp.
165 165
##
166 166
		$(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/@NAME@-generate-python-stamp WHAT=$<; \
167
		$(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/@NAME@-generate-guile-stamp WHAT=$<; \
167 168
##
168 169
## Now that the .cc, .h, and .py files have been (re)created from the
169 170
## .i file, future checking of this rule during the same MAKE
......
191 192
		exit $$?; \
192 193
	fi;
193 194

195
$(DEPDIR)/@NAME@-generate-guile-stamp:
196
	if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(@NAME@_swig_args) \
197
		-MD -MF $(DEPDIR)/@NAME@.Std \
198
		-module @NAME@ -o @NAME@-guile.cc $(WHAT); then \
199
	    if test $(host_os) = mingw32; then \
200
		$(RM) $(DEPDIR)/@NAME@.Sd; \
201
		$(SED) 's,\\\\,/,g' < $(DEPDIR)/@NAME@.Std \
202
			> $(DEPDIR)/@NAME@.Sd; \
203
		$(RM) $(DEPDIR)/@NAME@.Std; \
204
		$(MV) $(DEPDIR)/@NAME@.Sd $(DEPDIR)/@NAME@.Std; \
205
	    fi; \
206
	else \
207
	    $(RM) $(DEPDIR)/@NAME@.S*; exit 1; \
208
	fi;
209
	touch $(DEPDIR)/@NAME@-generate-guile-stamp
210

194 211
$(DEPDIR)/@NAME@-generate-python-stamp:
195 212
## This rule will be called only by the first process issuing the
196 213
## above rule to succeed in creating the lock directory, after
......
202 219
##
203 220
	if $(SWIG) $(STD_SWIG_PYTHON_ARGS) $(@NAME@_swig_args) \
204 221
		-MD -MF $(DEPDIR)/@NAME@.Std \
205
		-module @NAME@ -o @NAME@.cc $(WHAT); then \
222
		-module @NAME@ -o @NAME@-python.cc $(WHAT); then \
206 223
	    if test $(host_os) = mingw32; then \
207 224
		$(RM) $(DEPDIR)/@NAME@.Sd; \
208 225
		$(SED) 's,\\\\,/,g' < $(DEPDIR)/@NAME@.Std \

Also available in: Unified diff