help-make
[Top][All Lists]
Advanced

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

RE: Some more patter rules help


From: PATTON, BILLY \(SBCSI\)
Subject: RE: Some more patter rules help
Date: Tue, 2 May 2006 10:20:30 -0500

Actually, what I really need for the define is 

COPY_CMD = $(CP) $$$$< $$$$@
define do_sh
$(1)/% : $(2)/%.sh
  @echo "'$(COPY_CMD)'"

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On Behalf 
> Of PATTON, BILLY (SBCSI)
> Sent: Tuesday, May 02, 2006 10:15 AM
> To: address@hidden
> Subject: Some more patter rules help
> 
> 
> I have :
> define do_sh
> $(1)/% : $(2)/%.sh
>         @echo "copy $$$$< tp $$$$@"
> endef
> $(foreach proj,$(PROJECTS),\
>   $(foreach bb,$(bb+$(proj)),\
>     $(foreach topic,$(topic+$(proj)+$(bb)),\
>       $(eval $(call
> do_sh,$(PRD_TREE)/$(proj)/$(bb)/bin,$(SRC_TREE)/$(proj)/$(bb)/
> $(topic)/s
> rc)))))
> 
> 
> and I get from the echo :
> copy $< tp
> 
> How do I get the $? and $@ ?
> How many times do I need to refreence/derefence
> 
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
> 




reply via email to

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