noahrichards/util — pull request #1 by Trump211 (2012-12-29 19:56:01+00:00)
Title: gmakemake

Hi, at RIT I use gmakemake quite a lot because it is so easy to use. However it does not work natively on windows. (The commands it uses are for a bash shell not cmd.exe)

I have added windows compatibility:
- I have tested on both Windows and Linux using the correct options and both create working makefiles.
- If the makemake binary is built on windows it will default to using cmd.exe commands, if it is built on linux it will default to unix commands. (I figure if someone is creating the make file on a specific OS they will probably be building on that OS as well.)
-Both of these options can be overridden with flags.

I also added a -help flag.

Various refactoring to make it easier to add support for more compilers (aka clang):
- I can create a makefile which builds with clang, however the resulting binary results in a segfault when run. I think it has something to do with the -ansi option.