[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Difficulties from the combination of functions "call" and "eval"
From: |
SF Markus Elfring |
Subject: |
Re: Difficulties from the combination of functions "call" and "eval" |
Date: |
Sun, 18 Jan 2015 08:11:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
> So that $(eval $(call GIBBERISH)) is wrong. Exactly *how* it's wrong
> depends on what the $(call) is supposed to return. Currently you're
> evaling something that doesn't look like a *STANDALONE* chunk of
> Makefile, which results in the error *in the eval*.
I have added another tab character to a multi-line variable definition
which should be called for a specific evaluation.
Now I get a bit of more "progress indication" from a different error message.
…
parallel-inc.make:249: *** recipe commences before first target. Stop.
Would you like to give further hints (or advices) for another excerpt
from this build script?
Lines 183 - 203:
define RESULT_CHECK
for part in $(1); do \
if test "x$$(< $$part)" != "x0"; then \
$(PRINTF) "$$(TEXT3)" '$$part'; \
exit 12; \
fi; \
done \
&& $$(TOUCH) '$(2)'
endef
define HANDLE_BACKGROUND_TASK
@$(RM) '$(1)'
$(file >$(2)) \
$(file >>$(2),for task in $$($(SEQ) $(PARALLEL_MAXIMUM) -1 0); \
do $(MAKE) -f $(3) -j1 index=$$task &; \
done) \
$(file >>$(2),wait)
@cat '$(2)'
$$SHELL '$(2)'
$(eval $(call RESULT_CHECK,$(4),$(1)))
endef
Regards,
Markus
- Questionable line number in a message "missing separator"?, SF Markus Elfring, 2015/01/17
- Re: Questionable line number in a message "missing separator"?, Philip Guenther, 2015/01/17
- Re: Questionable line number in a message "missing separator"?, SF Markus Elfring, 2015/01/17
- Re: Questionable line number in a message "missing separator"?, Philip Guenther, 2015/01/17
- Re: Difficulties from the combination of functions "call" and "eval",
SF Markus Elfring <=
- Re: Difficulties from the combination of functions "call" and "eval", Philip Guenther, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", SF Markus Elfring, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", Norbert Thiebaud, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", Tim Murphy, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", SF Markus Elfring, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", Paul Smith, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", SF Markus Elfring, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", Paul Smith, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", SF Markus Elfring, 2015/01/18
- Re: Difficulties from the combination of functions "call" and "eval", Paul Smith, 2015/01/18