delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/18/09:19:14

Date: Tue, 18 May 1999 13:57:05 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Ephraim Ben-Ishai <Ephraimbi AT orckit DOT com>
cc: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: make file help
In-Reply-To: <9074E89DACDDD2119C4D00805FEDBE8921848E@ormail1.orckit.com>
Message-ID: <Pine.SUN.3.91.990518135647.24330c-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 17 May 1999, Ephraim Ben-Ishai wrote:

> I have a list of object files of the form: lib/file1.o lib/file2.o ...
> My dependencies are of the form src/file1.c src/file2.c ....
> How do I filter-out the lib/ and replace it with src/

Use the built-in functions $(subst) or $(patsubst).

- Raw text -


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