linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libtracefs: Force creation of lib/tracefs directory
@ 2020-12-09 23:09 Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2020-12-09 23:09 UTC (permalink / raw)
  To: Linux Trace Devel

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 --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:
-- 
2.25.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-09 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 23:09 [PATCH] libtracefs: Force creation of lib/tracefs directory Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).