I am trying to port the C application I was working on to use Rake insead GNU Make. The file tree looks something like this:
project βββ LICENSE.md βββ Makefile βββ Rakefile βββ README.md βββ src βββ debug.h βββ main.c βββ queue.c βββ queue.h βββ ui βββ ui.c βββ ui.h
I want to create each file in a separate build directory and generate dependencies of each .c file using gcc or clang in the deps folder.
I can't find examples of how to write a Rakefile to compile a C project. Does anyone have a link or some tips to help me get started?
EDIT: I have a temporary Rakefile that performs some of the tasks I want to end up doing this. I would like to determine if clang is installed and use clang or gcc.
Here is my current Rakefile https://github.com/Rostepher/spoticli/blob/master/Rakefile
c ruby rake
Rostepher
source share