From e284a92750538653b0c9824ee035a8e0992ebb05 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 12 Dec 2022 18:20:57 +0100 Subject: tutorial: Use rules-cc from public Git repository --- doc/tutorial/getting-started.org | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'doc/tutorial/getting-started.org') 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 -- cgit v1.2.3