Re: MakeMaker & Symlinks

[email protected] (brian d foy)
Newsgroups perl.makemaker
Message-ID <151120071544575821%[email protected]>
In article
<[email protected]>, Chris
Nighswonger <[email protected]> wrote:

> On 11/14/07, Michael G Schwern <[email protected]> wrote:
> > As to the second question, there's not enough information to answer that.
> > Could you give an example?
> >
> > What is it you are trying to accomplish?
> 
> Answering in reverse order.... I have an application which has
> language/standards options. 

> so at install time if LANG = 'en' then make should be instructed to build:
> 
> ln -s foo/lang/en/bar.conf foo/lang.conf

Why not just copy it? As Schwern said, not everything handles symlinks.

   ${CP} foo/lang/en/bar.conf foo/lang.conf

Alternatively, in the Makefile, you can create a new variable to be the
name of the config file to use

   CONF = foo/lang/en/bar.conf
   ....
   ${COMMAND} -abc -file=${CONF}

Not that I'm trying to get you to use Makemaker, but Module::Build will
be similarly platform-limited.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.