Revision b866f364 gr-radio-astronomy/src/lib/Makefile.swig.gen

b/gr-radio-astronomy/src/lib/Makefile.swig.gen
121 121

122 122
## Entry rule for running SWIG
123 123

124
ra.h ra.py ra_python.cc: ra.i
124
ra_python.h ra.py ra_python.cc ra_guile.cc ra_guile.h: ra.i
125 125
## This rule will get called only when MAKE decides that one of the
126 126
## targets needs to be created or re-created, because:
127 127
##
......
209 209
$(DEPDIR)/ra-generate-guile-stamp:
210 210
if GUILE
211 211
	if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(ra_swig_args) \
212
		-MD -MF $(DEPDIR)/ra.Std \
212
		-MD -MF $(DEPDIR)/ra_guile.Std \
213 213
		-module ra -o ra_guile.cc $(WHAT); then \
214 214
	    if test $(host_os) = mingw32; then \
215
		$(RM) $(DEPDIR)/ra.Sd; \
216
		$(SED) 's,\\\\,/,g' < $(DEPDIR)/ra.Std \
217
			> $(DEPDIR)/ra.Sd; \
218
		$(RM) $(DEPDIR)/ra.Std; \
219
		$(MV) $(DEPDIR)/ra.Sd $(DEPDIR)/ra.Std; \
215
		$(RM) $(DEPDIR)/ra_guile.Sd; \
216
		$(SED) 's,\\\\,/,g' < $(DEPDIR)/ra_guile.Std \
217
			> $(DEPDIR)/ra_guile.Sd; \
218
		$(RM) $(DEPDIR)/ra_guile.Std; \
219
		$(MV) $(DEPDIR)/ra_guile.Sd $(DEPDIR)/ra_guile.Std; \
220 220
	    fi; \
221 221
	else \
222
	    $(RM) $(DEPDIR)/ra.S*; exit 1; \
222
	    $(RM) $(DEPDIR)/ra_guile.S*; exit 1; \
223 223
	fi;
224 224
	touch $(DEPDIR)/ra-generate-guile-stamp
225
	$(RM) $(DEPDIR)/ra_guile.d
226
	cp $(DEPDIR)/ra_guile.Std $(DEPDIR)/ra_guile.d
227
	echo "" >> $(DEPDIR)/ra_guile.d
228
	$(SED) -e '1d;s, \\,,g;s, ,,g' < $(DEPDIR)/ra_guile.Std | \
229
		awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/ra_guile.d
230
	$(RM) $(DEPDIR)/ra_guile.Std
231
	touch $(DEPDIR)/ra-generate-guile-stamp
232

233
@am__include@ @am__quote@./$(DEPDIR)/ra_guile.d@am__quote@
225 234
endif
226 235

227 236
$(DEPDIR)/ra-generate-python-stamp:
......
234 243
## post-processing on 'mingw32' host OS for the dependency file.
235 244
##
236 245
	if $(SWIG) $(STD_SWIG_PYTHON_ARGS) $(ra_swig_args) \
237
		-MD -MF $(DEPDIR)/ra.Std \
246
		-MD -MF $(DEPDIR)/ra_python.Std \
238 247
		-module ra -o ra_python.cc $(WHAT); then \
239 248
	    if test $(host_os) = mingw32; then \
240
		$(RM) $(DEPDIR)/ra.Sd; \
241
		$(SED) 's,\\\\,/,g' < $(DEPDIR)/ra.Std \
242
			> $(DEPDIR)/ra.Sd; \
243
		$(RM) $(DEPDIR)/ra.Std; \
244
		$(MV) $(DEPDIR)/ra.Sd $(DEPDIR)/ra.Std; \
249
		$(RM) $(DEPDIR)/ra_python.Sd; \
250
		$(SED) 's,\\\\,/,g' < $(DEPDIR)/ra_python.Std \
251
			> $(DEPDIR)/ra_python.Sd; \
252
		$(RM) $(DEPDIR)/ra_python.Std; \
253
		$(MV) $(DEPDIR)/ra_python.Sd $(DEPDIR)/ra_python.Std; \
245 254
	    fi; \
246 255
	else \
247
	    $(RM) $(DEPDIR)/ra.S*; exit 1; \
256
	    $(RM) $(DEPDIR)/ra_python.S*; exit 1; \
248 257
	fi;
249 258
##
250 259
## Mess with the SWIG output .Std dependency file, to create a
......
256 265
##
257 266
## (1) remove the current dependency file
258 267
##
259
	$(RM) $(DEPDIR)/ra.d
268
	$(RM) $(DEPDIR)/ra_python.d
260 269
##
261 270
## (2) Copy the whole SWIG file:
262 271
##
263
	cp $(DEPDIR)/ra.Std $(DEPDIR)/ra.d
272
	cp $(DEPDIR)/ra_python.Std $(DEPDIR)/ra_python.d
264 273
##
265 274
## (3) all a carriage return to the end of the dependency file.
266 275
##
267
	echo "" >> $(DEPDIR)/ra.d
276
	echo "" >> $(DEPDIR)/ra_python.d
268 277
##
269 278
## (4) from the SWIG file, remove the first line (the target); remove
270 279
##     trailing " \" and " " from each line.  Append ":" to each line,
271 280
##     followed by 2 carriage returns, then append this to the end of
272 281
##     the dependency file.
273 282
##
274
	$(SED) -e '1d;s, \\,,g;s, ,,g' < $(DEPDIR)/ra.Std | \
275
		awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/ra.d
283
	$(SED) -e '1d;s, \\,,g;s, ,,g' < $(DEPDIR)/ra_python.Std | \
284
		awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/ra_python.d
276 285
##
277 286
## (5) remove the SWIG-generated file
278 287
##
279
	$(RM) $(DEPDIR)/ra.Std
288
	$(RM) $(DEPDIR)/ra_python.Std
280 289
##
281 290
## Create the stamp for this filename generation, to signal success in
282 291
## executing this rule; allows other threads waiting on this process
......
288 297
# not guaranteed to be portable, but will probably work.  If it works,
289 298
# we have accurate dependencies for our swig stuff, which is good.
290 299

291
@am__include@ @am__quote@./$(DEPDIR)/ra.d@am__quote@
300
@am__include@ @am__quote@./$(DEPDIR)/ra_python.d@am__quote@
292 301

Also available in: Unified diff