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?
> 
>     mvw@nil$ var = val
>     bash: var: command not found
>     mvw@nil$ var=val
>     mvw@nil$ 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: [EMAIL PROTECTED]
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       [EMAIL PROTECTED] 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc

Reply via email to