Skip to contentSkip to conversation

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

PATCH Applied Peter Bergin 2 participants 2 messages Nov 1, 2022 – Nov 10, 2022 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libtracefs: make it possible to set libdir,includedir and mandir from outside

When building in build frameworks such as openembedded it is desired to use the defintion of directories from the build framework.

---
v2: corrected prefix to libtracefs (from libtraceevent)

 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Makefile +3 -3
index 54ea247..8a6c697 100644
@@ -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 ":" " "))
Signature · 1 line
2.34.1