%% Zuheyr Alsalihi <[EMAIL PROTECTED]> writes:
> I seem to have a very random error, the famous
> Makefile:147: *** commands commence before first target. Stop.
...
> ifeq ($(COMPILER),gnu)
> F90 = /usr/bin/gfortran
> F90FLAGS_RG = --chk a,e,s --f95 -g \
> --trace --xref --trap -Wa,--32
> F90FLAGS_DEBUG = --chk a,e,s --f95 -g \
> --trace --xref --trap -Wa,--32
> echo " -GNU COMPILER-" <- this is the line
> endif
>
> Is this a bug!? What can I do about this please help.
No, it's not a bug. You have an invalid syntax there: you can't just
write a shell command like 'echo " -GNU COMPILER-"' in the middle of a
makefile somewhere. Makefiles are not shell scripts; they have to
obey makefile syntax not shell syntax.
Maybe if you told us what you intend for that line to actually do, we
could tell you how to do what you want.
--
-------------------------------------------------------------------------------
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