Re: Need help with makefiles

2012-09-10 Thread David Tardon
Hi, On Mon, Sep 10, 2012 at 08:30:46PM +0200, zolniata...@caesar.elte.hu wrote: > Idézet (Matúš Kukan ): > > Hi Matus, > > >Hi, > > > >On 10 September 2012 14:31, wrote: > >>define gb_ConcatPo > >>echo "" > $(2) > >>$(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)), $(shell cat > >>$(gb_POLOC

Re: Need help with makefiles

2012-09-10 Thread zolniatamas
Idézet (Matúš Kukan ): Hi Matus, Hi, On 10 September 2012 14:31, wrote: define gb_ConcatPo echo "" > $(2) $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)), $(shell cat $(gb_POLOCATION)/$(lang)/$(1) >> $(2) && printf "\n" >> $(2))) endef then the function will return with an empty file, a

Re: Need help with makefiles

2012-09-10 Thread Norbert Thiebaud
On Mon, Sep 10, 2012 at 11:31 AM, Matúš Kukan wrote: > Hi, > > On 10 September 2012 14:31, wrote: >> define gb_ConcatPo >> echo "" > $(2) >> $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)), $(shell cat >> $(gb_POLOCATION)/$(lang)/$(1) >> $(2) && printf "\n" >> $(2))) >> endef >> >> then the f

Re: Need help with makefiles

2012-09-10 Thread Matúš Kukan
Hi, On 10 September 2012 14:31, wrote: > define gb_ConcatPo > echo "" > $(2) > $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)), $(shell cat > $(gb_POLOCATION)/$(lang)/$(1) >> $(2) && printf "\n" >> $(2))) > endef > > then the function will return with an empty file, as if foreach had no > eff

Need help with makefiles

2012-09-10 Thread zolniatamas
Hi all, I have a problem with writing makefiles and I hope somebody can help me to solve it. I have this code: define gb_ConcatPo $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)), $(shell cat $(gb_POLOCATION)/$(lang)/$(1) >> $(2) && printf "\n" >> $(2))) endef define gb_Transex3Merge RE