bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug on GNU Make version 3.79.1


From: Paul D. Smith
Subject: Re: Bug on GNU Make version 3.79.1
Date: Wed, 9 May 2001 16:55:48 -0400

%% "Danny Turrin" <address@hidden> 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 <address@hidden>          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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]