So I wrote this makefile that I like to use, but I'd like to see if there's a better way to do one part. A key component of my Makefile is to find every cpp file in some directory (recursively), and preserve the path.
Now, I'm trying to port this so it works both in linux and in windows, as a Dev-C++ Makefile. The one problem is that first line, which relies on linux shell commands. Assuming I really don't want to have my makefile depend on cygwin being installed, is there a more "makefile" way (using just the GNU make builtins) to get this same effect?
thanks!
This is how I currently handle it (simplifie version):
Now, I'm trying to port this so it works both in linux and in windows, as a Dev-C++ Makefile. The one problem is that first line, which relies on linux shell commands. Assuming I really don't want to have my makefile depend on cygwin being installed, is there a more "makefile" way (using just the GNU make builtins) to get this same effect?
thanks!
This is how I currently handle it (simplifie version):