[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: copy check_SCRIPTS to build directory
From: |
Ralf Wildenhues |
Subject: |
Re: copy check_SCRIPTS to build directory |
Date: |
Tue, 3 Mar 2009 19:57:59 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: copy check_SCRIPTS to build directory,
Ralf Wildenhues <=