Makefile-addons gives some usefull tools to make the use of makefiles more easy.
- How does it work ?
- Let's begin
- Addons
- Modules
- Script
- Help
- Addons
- Addon std
- Addon pic
- Addon progCompil
Makefile_addons is design in a simple way in a API design.
Inside of your Makefile you can add some addons with the line :
include addons_makefile/makefile_addon_std
and can be used inside the Makefile
Addons are collections of modules that solves problems in the same field.
Modules are composed with one or more scipts that can solves a single problem.
Scripts are some small codes that are used to build more complex scripts that are used to build modules.
the help command that can be used to see all usefull commands that can be used. You can found help with command :
make help
or
make
Others commands can be found in the documentation bellow
/
- COM_COLOR = dark blue
- OBJ_COLOR = light blue
- OK_COLOR = green
- ERROR_COLOR = red
- WARN_COLOR = yellow
- NO_COLOR = no color
std_color -> display the colors in a terminal
This script display an exemple of colors that can be used
make std_color
You can use color variables inside your comment line like this :
@ echo -e "Couleur OK : $(OK_COLOR) texte $(NO_COLOR)"
This module contains modules to work with pictures
- makefile_addon_std (color module) : to create colored console outputs
- guetzli : compression program
PATH_RAW= path of the original files (path from the root of the project) PATH_OPTI= path of the output of the compressed files (path from the root of the project) QUALITY= express quality of compression of the pictures EXTENSION = extension of the pictures (jpg,png,...)
- makefile_addon_std (color module) : to create colored console outputs
This project was created by Antoine Lambert under MIT license