Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "rules" to fobos for performing "minor" tasks, e.g. create documentation, create project archive, etc... #8

Closed
szaghi opened this issue Jul 15, 2014 · 3 comments
Assignees

Comments

@szaghi
Copy link
Owner

szaghi commented Jul 15, 2014

Feature request:

Add the possibility to write "rules" into fobos file for performing "minor" tasks (e.g. to create documentation, to create project archive, etc...). One of the nice features of GNU Make is the ability to perform heterogeneous tasks other than the code building. It would be nice to have a similar feature into fobos file.

Presently, I am thinking at a peculiar set of fobos sections (for both single/many building modes versions) that should start with the prefix "rule-rule_name", namely

...
[rule-makedoc]
rule = doxygen ...
...
[rule-tar-prj]
rule = tar cf myprj.tar *
...

These rules should be invoked by means of a third execution-mode of FoBiS.py other than "clean" and "build", maybe "run" or "execute". Obviously, this execution mode requires a fobos file. The invocation should be similar to

FoBiS.py run makedoc

and the rule "rule-makedoc" (namely doxygen ...) is executed. Such a feature should come with a "list rules" switch for listing the rules defined into the fobos file.

@szaghi szaghi self-assigned this Jul 15, 2014
@szaghi
Copy link
Owner Author

szaghi commented Jul 15, 2014

I have just added this feature, the name of the new switch being "rule" not "run"... More details into the main documentation.

@Tobychev
Copy link
Contributor

Seems like it could be useful, but I've not needed it yet. I'll provide feedback when I've used it.

@szaghi
Copy link
Owner Author

szaghi commented Jul 23, 2014

Hi Tomas, thank you for your help. I like to use makefile for such minor tasks, and now that also FoBiS.py can, I can definitively leave GNU Make (at least on my workstation, because in some old clusters I use there is no python 2.7+ sic!).

@szaghi szaghi closed this as completed Oct 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants