This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: optional subdirectories
- To: Marc van Woerkom <marc dot vanwoerkom at science-factory dot com>
- Subject: Re: optional subdirectories
- From: "Gary V. Vaughan" <gvv at techie dot com>
- Date: Thu, 23 Nov 2000 18:18:09 +0000
- Cc: automake at gnu dot org, autoconf at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- References: <200011031609.eA3G9kX30815@nil.science-factory.com> <20001103200700.C422@demon.co.uk> <200011211925.eALJPfC01517@nil.science-factory.com> <200011212002.eALK2l801756@nil.science-factory.com> <20001121230257.A2552@demon.co.uk> <200011221103.eAMB3I809709@nil.science-factory.com>
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: gvv@techie.com
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ gary@gnu.org
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc