Hello James, sorry for the long delay.
* James K. Lowden wrote on Tue, Feb 03, 2009 at 05:50:54AM CET: > I have 25 unit tests that each process an SQL script: > > t0001 < t0001.sql > t0002 < t0002.sql > etc. > (Yeah, we planned for a lot of tests!) > > I like to use a separate build directory, per the Autobook's advice. How > do I tell automake to copy the scripts to the build directory? > > Since there is no requirement to modify the script, I didn't want to > bother with a makefile rule that converts, say, t0001.sql.in to t0001.sql. But really, such a rule would allow for a solution that is portable, and also efficient on all systems, and still acceptable on those where $(LN_S) (which you should use BTW) expands to `cp -p'. > I have tried: > > SQL_DIST = t0001.sql t0002.sql ... > > check_SCRIPTS = $(SQL_DIST) > > $(SQL_DIST): > ln -s $(srcdir)/$@ . > > but no joy. Cheers, Ralf
