diff mbox series

[v2] libtracefs: make it possible to set libdir,includedir and mandir from outside

Message ID 20221101111143.191772-1-peter@berginkonsult.se (mailing list archive)
State Accepted
Commit 263b115105ee2d57db821cb5cb516ccc8e58f46e
Headers show
Series [v2] libtracefs: make it possible to set libdir,includedir and mandir from outside | expand

Commit Message

Peter Bergin Nov. 1, 2022, 11:11 a.m. UTC
When building in build frameworks such as openembedded it is desired
to use the defintion of directories from the build framework.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
---
v2: corrected prefix to libtracefs (from libtraceevent)

 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Steven Rostedt Nov. 10, 2022, 1:12 a.m. UTC | #1
On Tue,  1 Nov 2022 12:11:43 +0100
Peter Bergin <peter@berginkonsult.se> wrote:

> When building in build frameworks such as openembedded it is desired
> to use the defintion of directories from the build framework.
> 
> Signed-off-by: Peter Bergin <peter@berginkonsult.se>

Applied. Thanks Peter!

-- Steve
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 54ea247..8a6c697 100644
--- a/Makefile
+++ b/Makefile
@@ -52,12 +52,12 @@  endif
 
 libdir_relative ?= $(libdir_relative_temp)
 prefix ?= /usr/local
-man_dir = $(prefix)/share/man
+man_dir ?= $(prefix)/share/man
 man_dir_SQ = '$(subst ','\'',$(man_dir))'
-libdir = $(prefix)/$(libdir_relative)
+libdir ?= $(prefix)/$(libdir_relative)
 libdir_SQ = '$(subst ','\'',$(libdir))'
 includedir_relative ?= include/tracefs
-includedir = $(prefix)/$(includedir_relative)
+includedir ?= $(prefix)/$(includedir_relative)
 includedir_SQ = '$(subst ','\'',$(includedir))'
 pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) 		\
 			--variable pc_path pkg-config | tr ":" " "))