help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: export not working...


From: Greg Chicares
Subject: Re: export not working...
Date: Wed, 21 Jan 2004 11:51:01 -0500

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)?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]