automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional copying


From: Simon Richter
Subject: Re: Conditional copying
Date: Thu, 6 Mar 2003 06:24:55 +0100
User-agent: Mutt/1.5.3i

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

Attachment: pgpAZaY0kXtow.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]