help-make
[Top][All Lists]
Advanced

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

Re: Partial generation of recipe and dependencies


From: Andre Majorel
Subject: Re: Partial generation of recipe and dependencies
Date: Thu, 21 Jun 2012 00:20:52 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On 2012-06-19 19:30 +0200, Andre Majorel wrote:

> define tgt
> .PHONY: $(1)
> $(1): destdir-unsafe
> endef
> 
> $(eval $(call tgt, target1))
>       do something
> 
> $(eval $(call tgt, target2))
>       do something else
> 
> Unfortunately, the splicing of the two lines coming from $(tgt)
> and the "do something" line does not take place and Make bombs
> with
> 
>   Makefile:#: *** commands commence before first target.  Stop.
> 
> on the "do something" line. Any way to make it work ? Thanks in
> advance.

No answers because it's a FAQ or because it's a tough one ?

-- 
André Majorel http://www.teaser.fr/~amajorel/



reply via email to

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