[asterisk-dev] Re: zaptel 1.4.1 gendigits + HOSTCC

Kristian Kielhofner kristian.kielhofner at gmail.com
Sat Mar 24 10:22:20 MST 2007


On 3/24/07, Kristian Kielhofner <kristian.kielhofner at gmail.com> wrote:
> On 3/24/07, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> >
> > Any reference to the supported makefile format? What about building
> > subdirectories?
> >
> > --
> >                Tzafrir Cohen
> > icq#16849755                    jabber:tzafrir at jabber.org
> > +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> > http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> Tzafrir,
>
>   I know it isn't a reference, but I see this EVERYWHERE:
>
> DIRS_MODULES = $(SOMEDIR) $(OTHERDIR)
>
> modules:
> ifdef LINUX24
>         for i in $(DIRS_MODULES); do \
>                 $(MAKE) -C $$i || exit 1; \
>         done
> else
>         $(MAKE) -C $(KERNELPATH) SUBDIRS=$(shell pwd) modules
> endif
>
>
>
> --
> Kristian Kielhofner
>

Kristian (replying to my own post),

  Even better would be:


DIRS_MODULES = $(SOMEDIR) $(OTHERDIR)
PWD=$(shell pwd)

modules:
ifdef LINUX24
       for i in $(DIRS_MODULES); do \
               $(MAKE) -C $$i || exit 1; \
       done
else
       $(MAKE) -C $(KERNELPATH) SUBDIRS=$(PWD) modules
endif


-- 
Kristian Kielhofner


More information about the asterisk-dev mailing list