help-make
[Top][All Lists]
Advanced

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

Re: Impossible to do this in make :-(


From: Tim Murphy
Subject: Re: Impossible to do this in make :-(
Date: Wed, 5 Feb 2014 19:56:36 +0000

https://bitbucket.org/tnmurphy/raptor/src/fbb2e624d320e5eabc0689105e2f2b80d131ca03/lib/flm/flmtools.mk?at=default

e.g.

$(call lowercase,ABCDEFGHIJKLMNOPQRSTUVWXYZ AA BB CC)

It's also a demonstration of how to make these various functions
callable and eval-able.

This collection of macros proved useful but like the GMSL it's just a
lot of hacks around the dreadful lack of exceedingly obviously
required builtin functions.

The load directive in 4.0 is a godsend since it lets your write your
own make functions in C and load them up.

Regards,

Tim

On 5 February 2014 19:03, Paul Smith <address@hidden> wrote:
> On Wed, 2014-02-05 at 10:55 -0800, Rakesh Sharma wrote:
>> Wanted to do a lowercase => uppercase conversion so wrote this (picked
>> from stackoverflow)
>>
>> lc = $(subst a,A,$(subst b,B,$(subst c,C,.....,$(subst z,Z,$1))....)
>>
>> As is, the above works. But I wanted to bring in "eval" here to avoid
>> typing this whole thing.😎
>>
>> But to my utter surprise & then dismay, I found it impossible to write
>> the RHS in any manner amenable to be eval-ed.
>
> Go get GMSL and be amazed and gratified:
>
> http://gmsl.sourceforge.net/
>
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-make



-- 
You could help some brave and decent people to have access to
uncensored news by making a donation at:

http://www.thezimbabwean.co.uk/friends/



reply via email to

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