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

More Prolog recipes for extending rules #67

Open
ihh opened this issue Oct 1, 2018 · 0 comments
Open

More Prolog recipes for extending rules #67

ihh opened this issue Oct 1, 2018 · 0 comments
Assignees

Comments

@ihh
Copy link
Member

ihh commented Oct 1, 2018

The ability to add Prolog clauses to rules is the unsung feature of biomake: potentially quite powerful, but lacking clear use cases & recipes.

How about a few examples in the README? Using re_match in the rule, as you can now do because biomake includes pcre, is one quick & powerful way to use this feature. We could put this into the README along with other examples e.g.

  • rule only fires if TARGET file is writable
  • rule only fires if TARGET file is older than one week
  • rule only fires if all DEPS files are under 1Mb in size
  • results go in directory X unless source file is Y, in which case they go into Z (use prolog/endprolog with a little prolog database that specifies the results dir)
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