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: Paul D. Smith
Subject: Re: Probably a v.small doubt
Date: Tue, 17 Sep 2002 12:47:32 -0400

%% Karthikesh Raju <address@hidden> writes:

  >> 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 ...).

  kr> Works but still it complains. like this:

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

No.  I didn't say anything about putting it inside a define/enddef.
This is _really_ not what you want to do; this creates a variable
"something" with a value of "TEXSYSTEM := ... "

What you want to do is create a variable TEXSYSTEM with the value which
is either latex or pdftex.


Write it just like I did above.  Obviously you have to replace the test
with something that tells you whether or not you want to use latex or
pdftex; I just put "<need processing>" as a placeholder there for some
shell code you should write.

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




reply via email to

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