From 6721fec4bc218fd2eb84017b3977b464b82c1aa4 Mon Sep 17 00:00:00 2001 From: Chongyun Lee Date: Fri, 23 Jun 2023 09:51:29 +0000 Subject: [PATCH] configure: fix error when building out of source When building out of source, currently, the python subdir in build directory will not be created, and in the make step some error will occur. Error message: `error: unable to open output file 'build/python/trace-python.op': 'No such file or directory'` Signed-off-by: Chongyun Lee --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5edabd4bb..237e5619c 100755 --- a/configure +++ b/configure @@ -311,11 +311,11 @@ all: prepare @\$(MAKE) -C \$(srcdir) clean: - @rm -rf cmds arch libmcount libtraceevent utils misc + @rm -rf cmds arch libmcount libtraceevent utils misc python @rm -f uftrace version.h *.o *.op prepare: - @mkdir -p cmds arch/\$(ARCH) libmcount libtraceevent utils misc + @mkdir -p cmds arch/\$(ARCH) libmcount libtraceevent utils misc python install: @\$(MAKE) -C \$(srcdir) install