help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Probably a v.small doubt


From: Karthikesh Raju
Subject: Re: Probably a v.small doubt
Date: Tue, 17 Sep 2002 19:44:09 +0300

Hi,

> Sure; use the $(shell ...) function.
> 
>   TEXSYSTEM := $(shell if <need processing>; then echo latex; else echo 
> pdftex; fi)
> 
> See the GNU make documentation for more info on := and $(shell ...).
>  

Works but still it complains. like this:

define something
TEXSYSTEM := $(shell if <need processing>; then echo latex; else echo pdftex; 
fi)
echo ${TEXSYSTEM}
endef

complains with the following warning:
TEXSYSTEM := latex
make: TEXSYSTEM: Command not found
make: *** [HutDetails.ps] Error 127

looks like TEXSYSTEM is set, but the very next echo does give you an
error. Am i missing any piece of the puzzle. (reading the manual too, but 
looks like it is in some fineprint, i cant see)

Thanks in advance,
Best wishes,

karthik





reply via email to

[Prev in Thread] Current Thread [Next in Thread]