www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/23/10:38:26

Date: Thu, 23 May 2002 17:23:08 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Manni Heumann <manni DOT heumann AT gmx DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Need a little help with make
In-Reply-To: <acissm$q0a1l$1@ID-54749.news.dfncis.de>
Message-ID: <Pine.SUN.3.91.1020523172135.1980A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 23 May 2002, Manni Heumann wrote:

> >   - change the %.o: %.cpp rule to produce *.o files in the
> >   special directory (tweak the "-o $@" part of the rule's command);
> 
> Ok, I did that. Sadly, it didn't work. Make did build the *.o files 
> and put them in the subdirectory. But: It would build them every 
> time, whether the were up to date or not, and it couldn't link my exe 
> file. Instead I got a "No such file or directory" error for each of 
> them. It seems like make did not look into my subdirectory at all. I 
> tried both absolute and relative path, no change.

Was that before or after you started to use VPATH?  If before, try adding 
VPATH and see if it helps.  If after, please show your Makefile after
all the changes.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019