David, > I'm trying to configure a program such that it will build properly, > whether or not the building is done from the top of the source tree, > or in a separate build directory. If a separate build directory is > used, it is necessary to copy one directory from $top_srcdir/examples > to $top_builddir/examples.
Usually I tell automake to pass ${srcdir}/file and don't bother copying. for example, tool_LDFLAGS = -Wl,--version-script=${srcdir}/file > How I can do the conditional copy? I tried this in Makefile.am > if [ $top_builddir != $top_srcdir ] ; then > cp -R $top_srcdir/examples $top_builddir/examples > fi Makefile.am is not a shell script, but rather a Makefile. Simon -- GPG Fingerprint: 040E B5F7 84F1 4FBC CEAD ADC6 18A0 CC8D 5706 A4B4
pgp00000.pgp
Description: PGP signature