compile
: functions module for shellfire
This module provides a simple set of wrapper functions for making it more pleasant to work with make
and gcc
.
- Current
HEAD
is compatible with shellfire releaserelease_2015.0117.1750-1
.
Usage couldn't be simpler. Just pick a function. Please note that most functions are not currently documented.
To import this module, add a git submodule to your repository. From the root of your git repository in the terminal, type:-
mkdir -p lib/shellfire
cd lib/shellfire
git submodule add "https://github.com/shellfire-dev/compile.git"
cd -
git submodule init --update
You may need to change the url https://github.com/shellfire-dev/compile.git
above if using a fork.
You will also need to add paths - include the module paths.d, and the dependencies git and cpucount.
This namespace contains useful functions wrapping compile
.
If calling from another shellfire module, add to your shell code the line
core_usesIn compile
in the global scope (ie outside of any functions). A good convention is to put it above any function that depends on functions in this module. If using it directly in a program, put this line inside the _program()
function:-
_program()
{
core_usesIn compile
…
}
Not yet documented.