%% "Danny Turrin" <[EMAIL PROTECTED]> writes:

  dt> Here is the bug: Makefile:21: *** commands commence before first
  dt> target.  Stop.

  dt> ifeq (SunOS,$(SYSTYPE))
  dt> ifeq ($(SYSVERS),570)
  dt>         SUBDIRS=sparcv8 sparcv9
  dt>         @echo sparcv89 > /home/dturrin/tdmf/Comp.log

The first line (SUBDIRS=...) is a make variable setting; it should _NOT_
be prefixed with a TAB, since it's a make operation.  Everything
prefixed with a TAB is treated by make as part of the command script for
a rule, and passed to the shell.

The second line (the echo) is a shell command.  It is not processed by
make.  It must be preceded by a TAB _BUT_ shell commands cannot appear
except inside a command script (or a $(shell...) function).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "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

Reply via email to