automake-patches
[Top][All Lists]
Advanced

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

Re: *_DATA containing blanks


From: Ralf Corsepius
Subject: Re: *_DATA containing blanks
Date: 24 Jul 2003 08:56:54 +0200

On Wed, 2003-07-23 at 21:30, Raja R Harinath wrote:
> Hi,
> 
> Ralf Corsepius <address@hidden> writes:
> 
> [snip]
> >  ## Funny invocation because Makefile variable can be empty, leading to
> >  ## a syntax error in sh.
> > -   @list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
> > +   if test -n '$(%DIR%_%PRIMARY%)'; then for p in $(%DIR%_%PRIMARY%); do \
> 
> Can you try:
> 
>   for p in ''$(%DIR%_%PRIMARY%); do case $p in '') : ;; *) \
>     body here ; \
>    esac done
> 
> This should avoid the syntax error.

I tried this:

if test -n '$(%DIR%_%PRIMARY%)'; then \
  for p in ""$(%DIR%_%PRIMARY%); do

Seems to work with Solaris 2.7 (/bin/sh + /usr/ccs/bin/make)
and RH-9 (bash + gmake).

Ralf






reply via email to

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