diff options
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/arara-rule-make.yaml')
-rw-r--r-- | Master/texmf-dist/scripts/arara/rules/arara-rule-make.yaml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-make.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-make.yaml new file mode 100644 index 00000000000..26f2183c70a --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-make.yaml @@ -0,0 +1,46 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: make +name: Make +authors: +- Island of TeX +commands: +- name: The Make program + command: > + @{ + if (!targets.isEmpty()) { + tasks = []; + for (target : targets) { + tasks.add(getCommand('make', target, options)); + } + return tasks; + } + else { + return getCommand('make', options); + } + } +arguments: +- identifier: targets + flag: > + @{ + if (isList(parameters.targets)) { + return parameters.targets; + } + else { + throwError('I was expecting a list of targets.'); + } + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } |