help-make
[Top][All Lists]
Advanced

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

Re: Pb with normal and implicit rules


From: Philippe HAUTION
Subject: Re: Pb with normal and implicit rules
Date: Wed, 10 Jul 2002 18:29:34 +0200
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Thank you ,

You're right, the result of your debugging line is :
../objd/sources /%.o  ../objr/sources /%.o

so the value of the ssp variable does contain a space, but none of the directory in my paths does ?!
What could be  adding this space at the end of sources ?

Paul D. Smith wrote:

%% Philippe HAUTION <address@hidden> writes:

ph> When trying to migrate form Sun Make to gnu Make on Solaris 8, I am ph> getting the following error message :
 ph> Makefile:179: *** mixed implicit and normal rules.  Stop.

 ph> where line 179 is :

 ph>  ../$(objdird)/%.o  ../$(objdirr)/%.o : %.cc

This message means that there are targets listed on the left-hand side
which do not contain a pattern character (%).

Since none is obvious here, my suspicion is that somewhere in your path
(results of `pwd`) you have a directory which contains a space, or
somehow the value of the ssp variable contains a space.

After you've defined objdird/objdirr, try putting this line in for
debugging:

 __d := $(shell echo '../$(objdird)/%.o  ../$(objdirr)/%.o' 1>&2)

and see what it prints.


--
Philippe Haution
EDF R&D
Département Méthodes d'Optimisation et de Simulation
1 Av du Général de Gaulle
92141 Clamart CEDEX






reply via email to

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