[Top][All Lists]

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

Re: gmake help with removing duplicate files

From: Jonathan
Subject: Re: gmake help with removing duplicate files
Date: Wed, 20 Feb 2008 10:25:12 -0800 (PST)
User-agent: G2/1.0


Thanks for you response.  Unfortunately, your suggestion is does not

> > I have an interesting filter problem (I think).  I would like to
> > remove duplicate filenames
> Why would you need that?

The short answer is the final list is for a linker and the linker
complains of multiply defined symbols.  The long answer is that final
list is constructed from a small set of local objects and a very large
set of remote objects to allow a user to link an application without
recompile of the entire project (or even ownership of the entire pr

> > 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)).

This will return:

file1.o file2.o file3.o path/file3.o path/file4.o path/file5.o

which has the duplicates file3.o and path/file3.o.  The sort function
uses the entire filepath/name string rather than just the filename.

reply via email to

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