[Crash-utility] [PATCH 3/4] make: use -C instead of (cd x; make)

Sven Schnelle svens at linux.ibm.com
Tue Dec 14 08:14:15 UTC 2021


Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 0fe0f4a948cf..38065ff9a697 100644
--- a/Makefile
+++ b/Makefile
@@ -291,8 +291,8 @@ clean: make_configure
 
 do_clean:
 	rm -f ${OBJECT_FILES} ${DAEMON_OBJECT_FILES} ${PROGRAM} ${PROGRAM}lib.a ${GDB_OFILES}
-	@(cd extensions; make -i clean)
-	@(cd memory_driver; make -i clean)
+	@make -C extensions -i clean
+	@make -C memory_driver -i clean
 
 make_build_data: force
 	${CC} -c ${CRASH_CFLAGS} build_data.c ${WARNING_OPTIONS} ${WARNING_ERROR}
@@ -661,7 +661,7 @@ extensions: make_configure
 	@make do_extensions
 
 do_extensions:
-	@(cd extensions; make -i TARGET=$(TARGET) TARGET_CFLAGS="$(TARGET_CFLAGS)" GDB=$(GDB) GDB_FLAGS=$(GDB_FLAGS))
+	@make -C extensions -i TARGET=$(TARGET) TARGET_CFLAGS="$(TARGET_CFLAGS)" GDB=$(GDB) GDB_FLAGS=$(GDB_FLAGS)
 
 memory_driver: make_configure 
-	@(cd memory_driver; make -i)
+	@make -C memory_driver -i
-- 
2.32.0




More information about the Crash-utility mailing list