aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>2025-06-02 17:50:21 -0300
committerJunio C Hamano <gitster@pobox.com>2025-06-02 17:28:52 -0700
commitb257adb571c0c185c88293eb3f7e2d5f8808b23c (patch)
tree7f85b79c82618e13c318aa6d4472a5212c4a3ed0
parent08c3aaf5bad99128a8bfb451bf7b56c447ad5e86 (diff)
downloadgit-b257adb571c0c185c88293eb3f7e2d5f8808b23c.tar.gz
MyFirstContribution: add walken.c to meson.build
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/MyFirstObjectWalk.adoc15
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/MyFirstObjectWalk.adoc b/Documentation/MyFirstObjectWalk.adoc
index 10364618c9..b7b2adc5de 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`