summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/arara/rules/make.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/make.yaml')
-rw-r--r--Master/texmf-dist/scripts/arara/rules/make.yaml53
1 files changed, 44 insertions, 9 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/make.yaml b/Master/texmf-dist/scripts/arara/rules/make.yaml
index ad3e565a443..07e619aa2df 100644
--- a/Master/texmf-dist/scripts/arara/rules/make.yaml
+++ b/Master/texmf-dist/scripts/arara/rules/make.yaml
@@ -1,12 +1,47 @@
!config
-# Make rule for arara
-# author: Marco Daniel
-# last edited by: Paulo Cereda
-# requires arara 3.0+
+# Arara, the cool TeX automation tool
+# Copyright (c) 2018, Paulo Roberto Massa Cereda
+# All rights reserved.
+#
+# This rule is part of arara.
identifier: make
name: Make
-command: <arara> make @{task}
-arguments:
-- identifier: task
- flag: <arara> @{parameters.task}
-
+authors:
+- Marco Daniel
+- Paulo Cereda
+commands:
+- name: The Make program
+ command: >
+ @{
+ if (isNotEmpty(targets)) {
+ 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.');
+ }
+ }