bug-make
[Top][All Lists]
Advanced

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

Re: Checking alternatives for a dynamic make rule construction


From: Paul Smith
Subject: Re: Checking alternatives for a dynamic make rule construction
Date: Sat, 17 Jun 2017 13:34:31 -0400

On Sat, 2017-06-17 at 17:00 +0200, SF Markus Elfring wrote:
> It might also be expected that this simple example just can not work
> as intended because of a special typo (one dollar sign missing).

Well, as they say, GIGO :)

> Corrected example:
> 
> my_test_command?=cat
> 
> define my_rule_demo=
> name::=${1}
> $${name:.in=.txt}: ${1}
>         $${my_test_command} $$< > $$@
> endef
> 
> $(eval $(call my_rule_demo,MOTD.in))

This looks fine to me.  Is there something wrong with it?  You haven't
provided any information what output you actually get from this
makefile, and why you feel that result is incorrect.

> How would you like to clarify remaining details from other requests?

I'm sorry but I've lost track of what issues have been resolved versus
which are still outstanding.  If you can provide an example and a
specific question, we can attempt to respond.



reply via email to

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