Re: Better description for define?

2015-01-06 Thread SF Markus Elfring
The define construct is already in the index. I am missing an explanation there for the aspect when the construct define … endef should be used instead of the other variants for variable assignments.

Re: Better description for define?

2015-01-06 Thread Tim Murphy
define..endef allows you to assign multi-line values to a variable. Regards, Tim On 6 January 2015 at 11:57, SF Markus Elfring elfr...@users.sourceforge.net wrote: The define construct is already in the index. I am missing an explanation there for the aspect when the construct define …

Re: Better description for define?

2015-01-06 Thread SF Markus Elfring
Would it help a bit to mention this information explicitly in the manual? I'm not sure what you mean. If you look up define in the GNU make manual index: http://www.gnu.org/software/make/manual/make.html#Name-Index_fn_letter-D it will send you here:

Re: Dynamic adjustments of build dependencies for the number of available processors

2015-01-06 Thread Norbert Thiebaud
On Mon, Jan 5, 2015 at 1:23 PM, Paul Smith psm...@gnu.org wrote: On Mon, 2015-01-05 at 20:06 +0100, SF Markus Elfring wrote: So you have in your toolbox $(shell) and $(eval). I am not familiar enough with the second make function.

Extracting structured data from file names

2015-01-06 Thread SF Markus Elfring
Hello, I can generate a few file names with an approach like the following. MY_FILES::= $(foreach index,$(shell seq 2 -1 0),$(eval MY_FILES+=X$(index).txt)) all: $(MY_FILES) @echo '|$^|' $(MY_FILES): ; Now I am looking for a way to extract the number from the shown prerequisite. Can