diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-02 17:05:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-02 17:05:02 +0100 |
commit | 1182531ed31ccff36e26121ae0cc5b3243669317 (patch) | |
tree | 98ea9ccb5e89ae0c3250e24a9ceb95dae53f77d5 /example | |
parent | 2f4e334f432f56ba9da8bace16ca89d76fd546e7 (diff) | |
download | rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.tar.gz rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.tar.bz2 rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.tar.xz rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.zip |
Creating engine.yaml and engine.ninja generator.
Diffstat (limited to 'example')
-rw-r--r-- | example/engine.ninja | 56 | ||||
-rw-r--r-- | example/engine.yaml | 17 |
2 files changed, 73 insertions, 0 deletions
diff --git a/example/engine.ninja b/example/engine.ninja new file mode 100644 index 0000000..3e6c6f3 --- /dev/null +++ b/example/engine.ninja @@ -0,0 +1,56 @@ +# Generated +# +### engine.ninja + +rule engine-yaml-to-ninja + command = engine ninja + +build engine.ninja: engine.yaml + +### engine.png + +rule ninja-to-dot + command = ninja -t graph > $out + +rule dot-to-png + command = dot -Tpng < $in > $out + +build engine.dot: ninja-to-dot build.ninja engine.ninja + +build engine.png: dot-to-png engine.dot + +# Jobs + +rule acme + command=engine run $name $inputs $output_state $agenda_group $modules + +build db/acme.yaml: acme + name=--name acme + output_state=--output-state db/acme.yaml + agenda_group= + modules=$ + --module=foo $ + --module=bar + +rule acme-apps + command=engine run $name $inputs $output_state $agenda_group $modules + +build db/acme-apps.yaml: acme-apps db/acme.yaml + name=--name acme-apps + inputs=$ + --input=db/acme.yaml + output_state=--output-state db/acme-apps.yaml + agenda_group= + +rule acme-wireguard + command=engine run $name $inputs $output_state $agenda_group $modules + +build db/acme-wireguard.yaml: acme-wireguard db/acme.yaml + name=--name acme-wireguard + inputs=$ + --input=db/acme.yaml + output_state=--output-state db/acme-wireguard.yaml + agenda_group= + modules=$ + --module=foo $ + --module=$$MODULE_HOME/bar diff --git a/example/engine.yaml b/example/engine.yaml new file mode 100644 index 0000000..e4216ea --- /dev/null +++ b/example/engine.yaml @@ -0,0 +1,17 @@ +dbDir: db +jobs: + - name: acme + modules: + - foo + - bar + + - name: acme-apps + inputs: + - acme + + - name: acme-wireguard + inputs: + - acme + modules: + - foo + - $MODULE_HOME/bar |