Skip to contentSkip to conversation

Fix makefile.

PATCH In review Tom Isaacson 3 participants 4 messages May 29, 2023 – May 30, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix makefile.

---
 documentation/sdk-manual/working-projects.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
documentation/sdk-manual/working-projects.rst +2 -2
index 9a0db0099..b49a4cdca 100644
@@ -296,8 +296,8 @@ example:
       	${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
Signature · 1 line
2.40.0.windows.1
#1 lore raw

What is bring fixed and why? The commit message needs to include this information.

Alex

Quoted 36 lines · Tom Isaacson
---
 documentation/sdk-manual/working-projects.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
documentation/sdk-manual/working-projects.rst +2 -3
index 9a0db0099..b49a4cdca 100644
@@ -296,8 +296,8 @@ example:
        ${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.40.0.windows.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#3971):
https://lists.yoctoproject.org/g/docs/message/3971
Mute This Topic: https://lists.yoctoproject.org/mt/99193507/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

PATCH v2 1/1 sdk-manual: fix Makefile example

From: Michael Opdenacker <[email protected]>

From: Tom Isaacson <[email protected]>

"module.h" should be part of the dependency line
Space fixes too

---
 documentation/sdk-manual/working-projects.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
documentation/sdk-manual/working-projects.rst +3 -3
index 9a0db0099d..b9af33393b 100644
@@ -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
Signature · 1 line
2.34.1
#3 lore raw
In reply to Alexander Kanavin
Quoted 1 line · Alexander Kanavin

What is bring fixed and why? The commit message needs to include this information.

Happy to help with that. Thanks Isaac for the patch and Alex for the review! Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com