Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 2.56 KB

README.md

File metadata and controls

67 lines (47 loc) · 2.56 KB

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.

Compatibility

Overview

Usage couldn't be simpler. Just pick a function. Please note that most functions are not currently documented.

Importing

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.

Namespace compile

This namespace contains useful functions wrapping compile.

To use in code

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
	…
}

Functions

Not yet documented.