by TickleSteve · 10y ago · 0 comments
No.... don't do this.
Make is intended to work the other way around... it finds the source from your targets.
Define your VPATH and let it find them.
This is what loads of people do and is why there are so many Makefiles are packed full of macro-magic!
Also you can't really get around specifying the files or searching, unless you have one c file per executable.