Skip to content

Commit b257adb

Browse files
lucasoshirogitster
authored andcommitted
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 <[email protected]> Helped-by: Patrick Steinhardt <[email protected]> Signed-off-by: Lucas Seiki Oshiro <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 08c3aaf commit b257adb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Documentation/MyFirstObjectWalk.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,23 @@ maintaining alphabetical ordering:
9696
{ "walken", cmd_walken, RUN_SETUP },
9797
----
9898

99-
Add it to the `Makefile` near the line for `builtin/worktree.o`:
99+
Add an entry for the new command in the both the Make and Meson build system,
100+
before the entry for `worktree`:
100101

102+
- In the `Makefile`:
101103
----
104+
...
102105
BUILTIN_OBJS += builtin/walken.o
106+
...
107+
----
108+
109+
- In the `meson.build` file:
110+
----
111+
builtin_sources = [
112+
...
113+
'builtin/walken.c',
114+
...
115+
]
103116
----
104117

105118
Build and test out your command, without forgetting to ensure the `DEVELOPER`

0 commit comments

Comments
 (0)