%% Karthikesh Raju <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make