help-make
[Top][All Lists]
Advanced

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

Feature request: toupper/tolower


From: Alexander Kriegisch
Subject: Feature request: toupper/tolower
Date: Wed, 31 Oct 2007 09:27:32 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Currently I use multiple expansion, e.g. for generating variable and
target names from the name of makefile includes. Example: I have a file
names my-package.mk and am generating targets like my-package-dirclean,
my-package-source etc. Furthermore, I am generating variables like
MY_PACKAGE_DIR, MY_PACKAGE_TARGET_BINARY and so forth. The thing is that
for generating upper-case names from a lower-case value I must use
something like $(shell tr ...) or $(shell awk ...), i.e. I keep spawning
shell processes for the sole purpose of doing a string case conversion.
It would be nice to have built-ins for doing this, because I think what
I am doing is pretty generic. Many makefiles user lower-case targets and
corresponding upper-case variables.
-- 
Alexander Kriegisch




reply via email to

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