Re: VMS: bs-nl and command handling fixes.

2015-01-06 Thread John E. Malmberg
This patch enhances the Unix shell simulation mode to support the UNIX exit command. On VMS, exit 1 is success and exit 0 is a failure. With GNV$MAKE_UNIX_SIM enabled, exit 1 is now a failure and exit 0 is a success. Regards, -John >From 55638f37333c9b539312698d163df8de37d37421 Mon Sep 17 0

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 I

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 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. >> http://www.gnu.org/software/make/manual/html_node/Eval-Function.ht

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: > > http://www.gnu.org

Re: Better description for "define"?

2015-01-06 Thread Paul Smith
On Tue, 2015-01-06 at 13:06 +0100, SF Markus Elfring wrote: > > define..endef allows you to assign multi-line values to a variable. > > Thanks for your clarification. > > Would it help a bit to mention this information explicitly > in the manual? I'm not sure what you mean. If you look up "defi

Re: Better description for "define"?

2015-01-06 Thread SF Markus Elfring
> define..endef allows you to assign multi-line values to a variable. Thanks for your clarification. Would it help a bit to mention this information explicitly in the manual? http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html#index-define_002c-expansion Regards, Markus ___

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 wrote: > > 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

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. http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html#index-define_002c-