I've used $(SRCDIR) for the source directory which should be used in
Examples/Makefile to build the examples and test suite. This is not
necessarily the same as $(srcdir), which is set by autoconf to the
directory containing a Makefile.in - the examples use non-autoconfigured
Makefiles, and so don't have $(srcdir), while some of the test suite
Makefile.in change directory before calling Examples/Makefile, so the
source directory is no longer $(srcdir). I appreciate this is probably
confusing at first glance - I'd welcome any suggestions for improvements.


On 27 April 2014 22:22, Olly Betts <notifications@github.com> wrote:

> In Makefile.in:
>
> > @@ -222,32 +224,62 @@ r_examples         :=$(shell sed '/^\#/d' $(srcdir)/Examples/r/check.list)
> >  go_examples        :=$(shell sed '/^\#/d' $(srcdir)/Examples/go/check.list)
> >  d_examples         :=$(shell sed '/^\#/d' $(srcdir)/Examples/d/check.list)
> >
> > +# files to create symbolic links to when running examples out of source tree
> > +# - Makefile is a minimum, to ensure directory structure is created
> > +# - generally, the language compiler rules in Examples/Makefile.in should use
> > +#   $(SRCDIR) to point to where source files are; but in certain cases it's
>
> Don't you mean $(srcdir)?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/swig/swig/pull/166/files#r12031121>
> .
>