git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSoC PATCH v2 2/2] MyFirstContribution: add walken.c to meson.build

From
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Date
Jun 2, 2025, 20:50 UTC
Message-ID
<20250602205021.4223-3-lucasseikioshiro@gmail.com>
In-Reply-To
<20250602205021.4223-1-lucasseikioshiro@gmail.com>

Instruct in the documentation to also add an entry in meson.build for builtin/walken.c, as currently both Meson and Make are supported.

Helped-by: Karthik Nayak <karthik.188@gmail.com>
Helped-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
---
 Documentation/MyFirstObjectWalk.adoc | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/Documentation/MyFirstObjectWalk.adoc b/Documentation/MyFirstObjectWalk.adoc
index a4ba6e21ec..413a9fdb05 100644
--- a/Documentation/MyFirstObjectWalk.adoc
+++ b/Documentation/MyFirstObjectWalk.adoc
@@ -96,10 +96,23 @@ maintaining alphabetical ordering:
 { "walken", cmd_walken, RUN_SETUP },
 ----
 
-Add it to the `Makefile` near the line for `builtin/worktree.o`:
+Add an entry for the new command in the both the Make and Meson build system,
+before the entry for `worktree`:
 
+- In the `Makefile`:
 ----
+...
 BUILTIN_OBJS += builtin/walken.o
+...
+----
+
+- In the `meson.build` file:
+----
+builtin_sources = [
+   ...
+  'builtin/walken.c',
+   ...
+]
 ----
 
 Build and test out your command, without forgetting to ensure the `DEVELOPER`
-- 
2.39.5 (Apple Git-154)
Previous: Lucas Seiki OshiroNext: Lucas Seiki Oshiro
Message 9 of 11 in “Update MyFirstObjectWalk with struct repository and meson”
  1. 0/2 Update MyFirstObjectWalk with struct repository and mesonLucas Seiki Oshiro, May 29, 2025
  2. 1/2 MyFirstContribution: use struct repository in examplesLucas Seiki Oshiro, May 29, 2025
  3. Karthik NayakMay 29, 2025
  4. 2/2 MyFirstContribution: add walken.c to meson.buildLucas Seiki Oshiro, May 29, 2025
  5. Karthik NayakMay 29, 2025
  6. Patrick SteinhardtMay 30, 2025
  7. Karthik NayakMay 29, 2025
  8. 0/2 MyFirstObjectWalk: update with struct repository and mesonLucas Seiki Oshiro, Jun 2, 2025
  9. 2/2 MyFirstContribution: add walken.c to meson.buildLucas Seiki Oshiro, Jun 2, 2025
  10. 1/2 MyFirstContribution: use struct repository in examplesLucas Seiki Oshiro, Jun 2, 2025
  11. Patrick SteinhardtJun 3, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.