-
Notifications
You must be signed in to change notification settings - Fork 37
Target
Chris MacMackin edited this page Dec 18, 2016
·
2 revisions
Let us assume to add another cumbersome program, namely cumbersome2.f90
└── src
├── cumbersome.f90
└── nested-1
├── first_dep.f90
└── nested-2
├── cumbersome2.f90
└── second_dep.incWe want to build on the last cumbersome program. We can just use the -t or --target option
FoBiS.py build --target cumbersome2.f90FoBiS.py will recursively search for cumbersome2.f90 and for all its dependency files. Note that it is not strictly required for a target to be a program: it can by any compilable source. FoBiS.py will (re-)compile only the target file (no matter if it is a program-file or not) and all its dependencies if necessary. In case the target is a program the output name will be the basename without any extension (i.e. cumbersome2 in the example). If a different output name is preferable it can be specified by the "-o" switch, namely
FoBiS.py build --target cumbersome2.f90 -o A-Custom-Output-Name-
Getting-Started
- A Taste of FoBiS.py
- fobos: the FoBiS.py makefile
- FoBiS.py in action
- FAQ