Re:Make for hipsters
by bluejekyll on Monday June 20, 2016 @03:40AM
(#11936633)
Answer me this, does anyone have a good cross-platform method of writing Make files? I guess with Windows now having bash, I can actually just target bash scripts?
[ Parent
| on HN ]
Take a look at makefiles from various suckless projects. For example: http://git.suckless.org/dwm/tree/Makefile
Their makefiles work with GNU Make and BSD Make, don't know about nmake (AFAIR Windows).
You _can_ use the GNU Autotools on Windows, though you need a shell installed (and a vaguely sane POSIX environment). CMake does a good job targeting a bunch of environments, including Windows.
CMake? Something about having to write a build system for my build system always makes me feel like I'm doing something wrong, though ;-)