%% "shh" <[EMAIL PROTECTED]> writes: s> i want to set a variable depending on the value of final target, as s> follows. on command line,
s> make -f mf.mak t01 s> in make file, s> ifeq ($(final_targetname), t01) s> ^^^^^^^^^^^^^^^^^^^^ s> VAR = T_01 s> else s> VAR = T02 s> endif Please always specify what version of GNU make you're using, and what operating system you're running on. If you're using GNU make 3.76 or above, look up the MAKECMDGOALS variable in the GNU make manual. If you're using something older than 3.76, upgrade. HTH... -- ------------------------------------------------------------------------------- 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
