%% "Nathan Royer" <[EMAIL PROTECTED]> writes: nr> I'm sure there is some way to not have to make one rule for every nr> translation into an object that has the exact same commands, but I nr> cannot seem to find it in the documentation and all the syntax that I've nr> tried does not seem to work.
nr> For example I would like to create object files from assembly files that nr> have one of many suffix's such as .asm .s .s55 etc. What I am currently nr> doing is the following: nr> %.obj: %.asm nr> $(object_from_asm_command) nr> %obj: %.s nr> $(object_from_asm_command) nr> %obj: %.s55 nr> $(object_from_asm_command) There is no better way to do this, really. If you have a lot of suffixes, and/or they change often, and you have GNU make 3.80 or better, then you could do it with $(eval ...) inside a loop. But the above is easier to read and understand. -- ------------------------------------------------------------------------------- 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
