How do you change makefile variables file extension?

Viewed 9787

For example, I have a variable that holds a list of dependencies

BOARDS:=lance.mcm light.mcm sac.mcm

I need another variable named NET such that

NET:=lance.net light.net sac.net

It should be set such that when I change the BOARDS variable, NET should change as well. For example, if I add a new zor.mcm into the BOARDS variable, it should automatically add zor.net into the NET variable.

2 Answers
Related