diff mbox series

[v2] sdk-manual: fix Makefile example

Message ID 20230530084241.1980529-1-michael.opdenacker@bootlin.com
State Accepted
Commit ad24794b095b17beee8e7bdb0b8c92ae72c6e5b0
Headers show
Series [v2] sdk-manual: fix Makefile example | expand

Commit Message

Michael Opdenacker May 30, 2023, 8:42 a.m. UTC
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 mbox series

Patch

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