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.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to