Re: gmake help with removing duplicate files

Jonathan <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <c82d9fb1-7a8f-4f15-9ee3-4239e9422e9f@n77g2000hse.googlegroups.com>
Ralf,

>
> I think you want to use an archive (a static library) for your "remote
> objects".

Well, a considerable amout are.  However, some portions are not and
cannot be put in a library for a variety of reasons.  So, we return to
the problem at hand.

> > > 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.
>
> I'm sure GNU make's functions can be hacked to provide this, but I don't
> think it's worth it, see above.

I figured the GNU make user-function utility would be sufficient to do
this.  My original algorithm to construct LIST3 just needs some way to
be recursive...
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.