On Mon, Sep 10, 2012 at 11:31 AM, Matúš Kukan <matus.ku...@gmail.com> wrote: > Hi, > > On 10 September 2012 14:31, <zolniata...@caesar.elte.hu> 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 >> effect. > > You probably don't want to use $(shell ..). > The command in there is executed first, when make is expanding > gb_ConcatPo I guess.
Yep, but if you double the $ ie $$(shell you can get the shell to be run when gb_ConcatPo is invoked rather than when it is defined Norbert _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice