sorry about incomplete bug-report. Following are the details and further questions.
GNU make version: 3.80 O/S: AIX 5.0 We used "?:" macro substitution on tru64 platform with their make, and it works as following: X= $(EXCLUDE_X?:$(TMP_ADD_X)) in the above if EXCLUDE_X is defined then X will be empty, if not defined it will be equal to TMP_ADD_X. This does not give any error while making with GNU make on AIX, but does not work, i.e. does not substitute X with TMP_ADD_X. I feel, if there is no "?:" operator, it should give a syntax error. Do you have any shorter alternative in GNU make other than "ifdef". Thanks a lot, Sandeep Nema >>> "Paul D. Smith" <[EMAIL PROTECTED]> 01/03/04 09:53AM >>> %% "Sandeep Nema" <[EMAIL PROTECTED]> writes: sn> In one of my makefile, I have following conditional syntax: sn> ADDONS_DB_C = $(EXCLUDEFWKLIB?:$(TMP_ADDONS_DB_C)) sn> This gives me an error for MACRO SUBSTITUTION First, this is not a proper bug report. Whenever you report a bug you must always specify the version of the program you're using, the type of system you're using it on, and the complete, _exact_ error message you received (best is to cut and paste it into your report). Plus, any other information you think might be useful. Second, there is nowhere in GNU make that the text "macro substitution" (in any case) exists, much less is printed. Finally, there is no "?:" macro operator in GNU make, so I don't know what the above construct might be supposed to mean. -- ------------------------------------------------------------------------------- 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 _______________________________________________ Bug-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-make