G
G
German2022-01-12 01:42:57
GNU Make
German, 2022-01-12 01:42:57

How to exclude one list of files from another in Make?

There is a list of files
OBJFILES=f1 f2 f3 f4 f5 f6 f7
And there is another list of files
OBJFREEFILES=f2 f3 f5 f7
I need to cut out all the files contained in the first list from the first list, that is, I should get:
OBJFILES=f1 f4 f6
Just I cannot cut one line from another, because the order of files in FREE is different.
How to achieve this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
German, 2022-01-12
@mrjbom

res2001's answer probably fits, but the filter-out function I found does just that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question