]> git.ipfire.org Git - thirdparty/git.git/commitdiff
MyFirstContribution: add walken.c to meson.build
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Mon, 2 Jun 2025 20:50:21 +0000 (17:50 -0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2025 00:28:52 +0000 (17:28 -0700)
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>
Documentation/MyFirstObjectWalk.adoc

index 10364618c9cd8eff004f18c48592e399ec01c02d..b7b2adc5defc0ba56deccd5b250c2c52cbd57a4b 100644 (file)
@@ -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`