[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enhancement request regarding make variable names
From: |
Paul D. Smith |
Subject: |
Re: Enhancement request regarding make variable names |
Date: |
Fri, 9 Jan 2004 16:58:44 -0500 |
%% address@hidden (Dale R. Worley) writes:
drw> It would be a useful thing if Make variable names were forbidden to
drw> contain slash (`/'), as well as `:', `#', and `='.
Unfortunately this is not a compatible change, and so can't be accepted.
I personally know of many environments where variables with "/" in the
name are used; for example, people implementing non-recursive make
solutions often generate variable names that contain directory paths in
them, to make them unique.
drw> The reason I make this request is that I was rebuilding a Linux
drw> kernel in a directory named (more or less)
drw> `/auto/LABEL=Backup/linux-2.4.20-24.8.test4'. The Linux kernel
drw> makefile expands out the full path of the files it is working
drw> with, rather than using relative names, so at one point, it
drw> generated a Makefile rule looking something like this:
drw> cciss.h: \
drw> /auto/LABEL=Backup/linux-2.4.20-24.8.test4/include/linux/genhd.h \
drw> /auto/LABEL=Backup/linux-2.4.20-24.8.test4/drivers/block/cciss_cmd.h
drw> @touch cciss.h
Yes, I see the problem.
The best solution would be if the kernel builds could be changed to be a
little more robust, say by quoting "=" signs with "\".
Other than that, or allowing you to disable the feature altogether
(which might break something else, I don't know), I don't see any good
alternatives :-/.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist