From: michael.opdenacker@bootlin.com
To: docs@lists.yoctoproject.org
Cc: Michael Opdenacker <michael.opdenacker@bootlin.com>,
Tom Isaacson <tom.isaacson@teknique.com>
Subject: [PATCH v2] sdk-manual: fix Makefile example
Date: Tue, 30 May 2023 10:42:41 +0200 [thread overview]
Message-ID: <20230530084241.1980529-1-michael.opdenacker@bootlin.com> (raw)
In-Reply-To: <CANNYZj8nnq8Kw0A8WvQyqfTQy_eyPTyzGdU5m7-J6v+0qHWCMw@mail.gmail.com>
From: Michael Opdenacker <michael.opdenacker@bootlin.com>
From: Tom Isaacson <tom.isaacson@teknique.com>
"module.h" should be part of the dependency line
Space fixes too
Signed-off-by: Tom Isaacson <tom.isaacson@teknique.com>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
---
documentation/sdk-manual/working-projects.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/documentation/sdk-manual/working-projects.rst b/documentation/sdk-manual/working-projects.rst
index 9a0db0099d..b9af33393b 100644
--- a/documentation/sdk-manual/working-projects.rst
+++ b/documentation/sdk-manual/working-projects.rst
@@ -293,11 +293,11 @@ example:
# CC=i586-poky-linux-gcc -m32 -march=i586 --sysroot=/opt/poky/2.5/sysroots/i586-poky-linux
# CC="gcc"
all: main.o module.o
- ${CC} main.o module.o -o target_bin
+ ${CC} main.o module.o -o target_bin
main.o: main.c module.h
${CC} -I . -c main.c
- module.o: module.c
- module.h ${CC} -I . -c module.c
+ module.o: module.c module.h
+ ${CC} -I . -c module.c
clean:
rm -rf *.o
rm target_bin
--
2.34.1
next prev parent reply other threads:[~2023-05-30 8:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 3:06 [PATCH] Fix makefile Tom Isaacson
2023-05-29 4:46 ` [docs] " Alexander Kanavin
2023-05-30 8:42 ` michael.opdenacker [this message]
2023-05-30 8:47 ` Michael Opdenacker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230530084241.1980529-1-michael.opdenacker@bootlin.com \
--to=michael.opdenacker@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=tom.isaacson@teknique.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox