[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: optional subdirectories
From: |
Gary V. Vaughan |
Subject: |
Re: optional subdirectories |
Date: |
Thu, 23 Nov 2000 18:18:09 +0000 |
User-agent: |
Mutt/1.2.5i |
On Wed, Nov 22, 2000 at 12:03:18PM +0100, Marc van Woerkom wrote:
> > > > SUBDIRS = @SUBDIRS@
> > > >
> > > > Then in your `configure.in' you can specify:
> > > >
> > > > SUBDIRS = "src doc lib po"
> > > > AC_SUBST(SUBDIRS)
> > >
> > > Yuck, this voodoo works only if it is written as
> > >
> > > SUBDIRS="src doc lib po" (no spaces!)
> > >
> > > does this qualify as bug for the automake tutorial? :)
> >
> > Nope. Standard bourne shell syntax. Try ``var = val'' from your
> > shell command line if you don't believe me =)O|
>
> Uhm?
>
> address@hidden var = val
> bash: var: command not found
> address@hidden var=val
> address@hidden echo $var
> val
>
> So I have to change that line in the automake tutorial, because
> spaces or evil here, or?
That's right. The assignment to SUBDIRS with spaces around the `=' is
fine in a Makefile, but not in a shell script.
> What makes understanding and writing hard in these cases is
> this twisted context. It is not easy to know who is parsing
> what.
There are some nice diagrams to help visualise these dependencies in
the Goat book. In particular, see:
http://sources.redhat.com/autobook/autobook/autobook_280.html#SEC280
> Regards,
> Marc
Cheers,
Gary.
--
___ _ ___ __ _ mailto: address@hidden
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: optional subdirectories,
Gary V. Vaughan <=