diff mbox series

libtracefs: Force creation of lib/tracefs directory

Message ID 20201209180938.1d69f169@gandalf.local.home (mailing list archive)
State Accepted
Commit d071a4c8dc3d4ff077f8d9ca1e949a7b7186b2e1
Headers show
Series libtracefs: Force creation of lib/tracefs directory | expand

Commit Message

Steven Rostedt Dec. 9, 2020, 11:09 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

If the $(obj)/lib/tracefs directory does not exist, create it before
building the libraries. Otherwise the build will fail due to the directory
not existing.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 5d11abc..02b3d25 100644
--- a/Makefile
+++ b/Makefile
@@ -277,9 +277,11 @@  $(bdir):
 LIBS = -L$(obj)/lib/traceevent -ltraceevent
 
 $(LIBTRACEFS_STATIC): force
+	$(Q)mkdir -p $(bdir)
 	$(Q)$(MAKE) -C $(src)/src $@
 
 $(bdir)/libtracefs.so.$(TRACEFS_VERSION): force
+	$(Q)mkdir -p $(bdir)
 	$(Q)$(MAKE) -C $(src)/src $@
 
 clean: