Christopher J Bottaro wrote:
> 
> hmm, how about if i do this then...
> 
> $(SUBDIRS):
> ifeq($(ARCH),LINUX)
> export MYVAR = DEBUG
> endif
>         cd $@ && $(MAKE)

Try this instead:

ifeq ($(ARCH),LINUX)
  export MYVAR = DEBUG
endif

$(SUBDIRS):
        cd $@ && $(MAKE)

> that doesn't work either.  make says "commands commence before first target".

That diagnostic may come from something earlier in the makefile.

> on another note, how would one do a recursive make clean without using a shell
> for loop?

Have you tried $(foreach)?


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to