-
Notifications
You must be signed in to change notification settings - Fork 35
Generating GNU makefile
If you absolutely need to work with GNU Make, FoBiS.py can still help you. It is possible to generate a valid GNU makefile in a fully automatic way by means of the -m or -makefile switch of the build execution:
FoBiS.py build -m my-makefile
Using the switch -m the project is not actually built, instead the file my-makefile is created with valid instructions for building the project by means of GNU Make. It is worth noting that this building mode can be coupled with fobos file acting as a translator from the very simple and friendly fobos syntax to the very cumbersome one of GNU Make:
FoBiS.py build -m my-makefile -f my-fobos
Note that the makefiles generated by FoBiS.py have some auxiliary rules for minor tasks, e.g. clean the project, build the directories, etc.
Finally, for brave users only, it is possible to write a rule into fobos for generating the makefile like the following:
...
[rule-genmakefile]
help = A crazy rule for generating a makefile from fobos by means of FoBiS.py
rule = FoBiS.py build -m makefile
Typing
FoBiS.py rule -ex genmakefile
the file makefile will contain the GNU Make instructions for building the project exactly as fobos does.
-
Getting-Started
- A Taste of FoBiS.py
- fobos: the FoBiS.py makefile
- FoBiS.py in action
- FAQ