diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-12 18:20:57 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-16 12:05:27 +0100 |
commit | e284a92750538653b0c9824ee035a8e0992ebb05 (patch) | |
tree | 3cdcb3e60e58f12a3ccccab6dcd426048cc05c40 /doc/tutorial/getting-started.org | |
parent | fb7bf97e680f97833268c7bb4c8220a3cf58e297 (diff) | |
download | justbuild-e284a92750538653b0c9824ee035a8e0992ebb05.tar.gz |
tutorial: Use rules-cc from public Git repository
Diffstat (limited to 'doc/tutorial/getting-started.org')
-rw-r--r-- | doc/tutorial/getting-started.org | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/doc/tutorial/getting-started.org b/doc/tutorial/getting-started.org index 1573a8b9..3dc48511 100644 --- a/doc/tutorial/getting-started.org +++ b/doc/tutorial/getting-started.org @@ -145,19 +145,14 @@ any problem, add a second target also generating a file ~out.txt~. #+SRCNAME: TARGETS #+BEGIN_SRC js -{ "greeter": - { "type": "generic" - , "cmds": ["echo -n 'Hello ' > out.txt", "cat name.txt >> out.txt"] - , "outs": ["out.txt"] - , "deps": ["name.txt"] - } +... , "upper": { "type": "generic" , "cmds": ["cat name.txt | tr a-z A-Z > out.txt"] , "outs": ["out.txt"] , "deps": ["name.txt"] } -} +... #+END_SRC As we only request targets, no conflicts arise. @@ -196,21 +191,10 @@ argument ~"files"~ can be used to map that file to a new location. #+SRCNAME: TARGETS #+BEGIN_SRC js -{ "greeter": - { "type": "generic" - , "cmds": ["echo -n 'Hello ' > out.txt", "cat name.txt >> out.txt"] - , "outs": ["out.txt"] - , "deps": ["name.txt"] - } -, "upper": - { "type": "generic" - , "cmds": ["cat name.txt | tr a-z A-Z > out.txt"] - , "outs": ["out.txt"] - , "deps": ["name.txt"] - } +... , "both": {"type": "install", "files": {"hello.txt": "greeter", "upper.txt": "upper"}} -} +... #+END_SRC #+BEGIN_SRC sh |