How to remove multiple source files after wildcard Makefile
<p>The question is:</p>

<p>I have a makefile called A.mk (a general makefile for all projects). Over there, I have added all source files in folder src1 using 
Var += $(wildcard src1/*.c) </p>

<p>Then, for a specific application I have a makefile (called B.mk), which includes A.mk in itself. Now, I want to substitute the source file foo1.c from folder src1 with a new one foo2.c from folder src2. How can I do that?</p>

<p>How can I do that if I want to substitute (or even delete) multiple files from Var in B.mk.</p>

<p>Thanks for your help in advance.</p>