aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bergin <peter@berginkonsult.se>2022-10-31 22:21:40 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-11-09 19:42:36 -0500
commitda2e9798df4e0f2acf0bd5c67a4eddfda4b1e129 (patch)
tree4f2f6f872d0923bcab8b677815e76e1f2beb92c1
parent4c79560b5a6c71f84e6731fd37f35ffb4e3837a6 (diff)
downloadlibtraceevent-da2e9798df4e0f2acf0bd5c67a4eddfda4b1e129.tar.gz
libtraceevent: Make it possible to set libdir and mandir from outside
When building in build frameworks such as openembedded it is desired to use the defintion of libdir and mandir from the build framework. Link: https://lore.kernel.org/linux-trace-devel/20221031212140.170601-1-peter@berginkonsult.se Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fab8f7e..e974117 100644
--- a/Makefile
+++ b/Makefile
@@ -46,8 +46,8 @@ endif
libdir_relative ?= $(libdir_relative_temp)
prefix ?= /usr/local
-libdir = $(prefix)/$(libdir_relative)
-man_dir = $(prefix)/share/man
+libdir ?= $(prefix)/$(libdir_relative)
+man_dir ?= $(prefix)/share/man
man_dir_SQ = '$(subst ','\'',$(man_dir))'
pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG) \
--variable pc_path pkg-config | tr ":" " "))