Hacker News new | ask | show | jobs
by thedumbname 1173 days ago
Use Makefile if you want to make your cross-platform build environment Linux only. You will have all kind of issues on Windows, Mac, *BSD, you name it.
3 comments

You can resolve the differences between BSD and GNU make.

Not sure about Windows. I'd expect that WSL bundles GNU make, no?

Make is in POSIX, so stick to POSIX features and your Makefile is portable across all reasonable systems. For Windows, I guess you use a .bat file.
Is that more of an issue if you shell-out a lot in your Makefile? (I don't use mac or win)