Re: gmake help with removing duplicate files

Ralf Wildenhues <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Department of Numerical Simulation, University of Bonn
Message-ID <[email protected]>
Hello Jonathan,

* Jonathan wrote on Thu, Jan 31, 2008 at 03:41:57AM CET:
> 
> I have an interesting filter problem (I think).  I would like to
> remove duplicate filenames

Why would you need that?

> LIST1 := file1.o file2.o file3.o
> LIST2 := path/file3.o path/file4.o path/file5.o
> 
> Desired result of:
> 
> LIST := file1.o file2.o file3.o path/file4.o path/file5.o

With GNU make, use $(sort $(LIST1) $(LIST2)).

Cheers,
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.