Re: make portability issue

2007-02-13 Thread Ralf Wildenhues
Hello Guillaume, * Guillaume Rousse wrote on Mon, Feb 12, 2007 at 11:29:05AM CET: > > Still on the portability issue, I have some doubts about the following > hack, to create an output file of the same type as the input one: > > SUFFIXES = .png .small.png > > .png.small.png: > convert -

Re: make portability issue

2007-02-12 Thread Guillaume Rousse
Ralf Wildenhues wrote: > I think POSIX requires the part between `:' and `=' to be nonempty, but > not the part after `='. So write > > A = foo.h > LIST = $(A) $(B) > LIST_H = $(LIST:.h=) > > Hope that helps. It works, thanks. Still on the portability issue, I have some doubts about the followi

Re: make portability issue

2007-02-08 Thread Ralf Wildenhues
Hello Guillaume, * Guillaume Rousse wrote on Thu, Feb 08, 2007 at 10:44:35AM CET: > > I just found an issue in GNU make handling of empty variable in > substitutions: > A = foo > LIST = $(A) $(B) > LIST_H = $(LIST:=.h) > > all: > echo $(LIST_H) > > With GNU make 3.80, LIST_H is incorect