[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: busted 'make swig-py'...

From: Joe Orton <joe_at_manyfish.co.uk>
Date: 2003-02-28 23:41:47 CET

On Fri, Feb 28, 2003 at 09:16:02AM -0800, Matt Kraai wrote:
...
> I have
>
> subversion/bindings/swig/python/svn_client.c: subversion/bindings/swig/svn_client.i
> $(RUN_SWIG_PY)
>
> in my build-outputs.mk and
>
> RUN_SWIG_PY = $(SWIG) -c -python -noproxy $(SWIG_INCLUDES) $(SWIG_PY_INCLUDES) -o $@ $<
>
> in my Makefile, so we are telling it how to create the .c for the
> .i. Furthermore, the command line you sent shows it running the
> command (except for the $<).

This is a common mistake - you can only use $< in inference rules (.c.o
style) to be portable. In the BSD make Ben uses $< will expand to
nothing in this case - in GNU make it will expand to the left-most
dependency (or all of them, I can't remember).

joe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 28 23:39:04 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.