[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: concatenate words with no space
From: |
Greg Chicares |
Subject: |
Re: concatenate words with no space |
Date: |
Fri, 13 Jun 2008 18:30:55 +0000 |
User-agent: |
Thunderbird 2.0.0.14 (Windows/20080421) |
On 2008-06-13 17:14Z, Robert Swan wrote:
> Can anyone provide a method to concatenate a directory listing into a
> list of directory names separated only by semicolons without any
> spaces? I have
>
> incs=$(subst /,;,$(sort $(dir $(wildcard */*.h))))
>
> which gives something like
>
> main; app; db;
>
> but I need
>
> main;app;db
nullstring :=
space := $(nullstring) # end of the line
incs2=$(subst $(space),,$(incs))
Look for "nullstring" in the 'make' manual for an explanation.