[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Help with GNUMAKE on PC platform - command line lenghtlimitations
From: |
Ron.E.Gaskins |
Subject: |
RE: Help with GNUMAKE on PC platform - command line lenghtlimitations |
Date: |
Fri, 1 Aug 2003 08:14:22 -0500 |
The following is from the GNUMAKE documents edition 0.60 last updated 08-JUL-02
for make version 3.80. It was the only $(eval) example I found.
$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
I thought the echo version I gave followed this syntax rule.
-----Original Message-----
From: Paul D. Smith [mailto:address@hidden
Sent: Thursday, July 31, 2003 4:24 PM
To: Gaskins, Ron E
Cc: Eli Zaretskii; address@hidden
Subject: RE: Help with GNUMAKE on PC platform - command line
lenghtlimitations
%% "Ron.E.Gaskins" <address@hidden> writes:
reg> Problems with $(EVAL):
reg> Assume a legacy application, APPX, that accepts one filename as
reg> an argument. I need GNUMAKE to call APPX for each file in
reg> $(FILES). If I solve this problem I also have resolution to the
reg> above problem of command line too long for the erasing of
reg> multiple files. It appears that the $(EVAL) is just what I need
reg> to do the job. However, the syntax rules do not agree with my
reg> documentation. Is the following correct?
reg> $(foreach FILE, $(FILES), $(eval echo))
No. You are misunderstanding the purpose of eval.
Eval is meant to allow you to write little parts of a makefile
"dynamically". That is, everything you eval must be a syntactically
complete part of a makefile: the makefile parser will be invoked on that
part just as if it were a separate file and you used "include" to
include it.
In order to use Eval for this you'd have to generate a single rule that
contained multiple echo commands, then eval the whole thing one time.
--
-------------------------------------------------------------------------------
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
- RE: Help with GNUMAKE on PC platform - command line lenghtlimitations,
Ron.E.Gaskins <=