On Tuesday, 31 October, Bhaskar G ([EMAIL PROTECTED]) wrote: > test.txt:: > @$(RM) $@; > for i in $(TEST) ; \ > do \ > if [ -d $$i ] ; then \ > $(ECHO) "`basename $$comp` $$comp">> $@; \ > fi ;\ > done
What's $$comp? Do you mean $$i here? > The same implementation works fine with gmake 3.80, but when using gmake > 3.81 I get the following error. > Syntax error: end of file unexpected Is that the exact error message you get, letter for letter? GNU make won't print out anything like "Syntax error"; no such message exists in the code. That means it's not GNU make that's printing this message. When asking for help please be sure to include EXACTLY the command you entered and the messages you received, especially error messages. By far the best way is to cut and paste them into your email to avoid transcription errors. -- ------------------------------------------------------------------------------- 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://lists.gnu.org/mailman/listinfo/help-make
