Hi,
Here is the bug: Makefile:21: *** commands commence before first target.
Stop.
I hope I can give you all the correct info...
All I am trying to do is add two traces in a Makefile (see below) using the
"@echo" command. The first trace seems to compile just fine, but the second
one is not accepted by the compiler.
I tried removing the second trace, and everything compiles. I then tried to
leave the second trace and remove the first trace and I get the same
message.
I also tried removing the tabs. I then got a different error message on the
same line: Makefile:21: *** missing separator. Stop.
So now I am completely baffled.
I hope you can help me figure this one out.
Here the the system info:
-----------
System = SunOS
Node = tdmfsunc
Release = 5.8
KernelID = Generic_108528-05
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
-----------
In the Makefile, all the indents are tabs, not spaces. I also made sure that
the end-of-lines were in the correct UNIX format.
Here is the Makefile:
-----------
#
#
#
# $Id: Makefile,v 1.3 2001/01/17 17:58:55 hutch Exp $
#
TOP=..
CDEFINES= -D_KERNEL -DKERNEL
EXTRA_CLEANS=${Q}.conf *.lst ${Q}.?map ${Q}.map ${Q}.exp version.o
include ${TOP}/Makefile.inc
ifeq (SunOS,$(SYSTYPE))
ifeq ($(SYSVERS),570)
SUBDIRS=sparcv8 sparcv9
@echo sparcv89 > /home/dturrin/tdmf/Comp.log
else
SUBDIRS=sparcv8
@echo sparcv8 > /home/dturrin/tdmf/Comp.log
endif
endif
ifeq (HP-UX,$(SYSTYPE))
ifeq ($(SYSVERS),1100)
SUBDIRS=Pa1100_32 Pa1100_64
else
SUBDIRS=Pa1020
endif
endif
-----------
Let me know if you need more information.
Danny Turrin
Software Developer
Fujitsu SOFTEK
720, rue Montgolfier, suite 201, Laval, QC
Tel: 1(800) / (450)686-2455 ext.203
Fax: (450)686-0239
winmail.dat