diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-08-14 16:11:19 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-08-17 12:19:06 +0200 |
commit | 83fda71af7ac89acd65515637cad6679bbacdf90 (patch) | |
tree | 6f520fdaa51d811a83f22a24c413cb6a54efe8c6 | |
parent | 7fc304ccb797b762845a4eaaaedec3ecc50a85e6 (diff) | |
download | justbuild-83fda71af7ac89acd65515637cad6679bbacdf90.tar.gz |
documentation: add some clarifying comments
... emphasizing that source files are just targets and that we
could as well use a defined target there.
-rw-r--r-- | doc/tutorial/hello-world.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/tutorial/hello-world.md b/doc/tutorial/hello-world.md index 54ed7d72..8430775f 100644 --- a/doc/tutorial/hello-world.md +++ b/doc/tutorial/hello-world.md @@ -92,8 +92,10 @@ strings or a list of targets, we have to specify the name as a list (this rule will simply concatenate all strings given in this field). Furthermore, at least one input to the binary is required, which can be specified via the target fields `"srcs"` or `"deps"`. In our case, the -former is used, which contains our single source file (files are -considered targets). +former is used, which contains our single source file. Source files are +also targets, but, as seen in the "Getting Started" section, not the only +ones; instead of naming a source file, we could also have specified a +`"generic"` target generating one (or many) of the sources of our binary. Now, the last file that is missing is the actual source file `main.cpp`: |