[PATCH 3/6] libtraceevent: Move creation of PKG_CONFIG_FILE to after Makefile.include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>

The creation of the PKG_CONFIG_FILE appends $(OUTPUT) to
$(PKG_CONFIG_SOURCE_FILE) but this happens before the include of
Makefile.include, that defines what $(OUTPUT) is. The end result is that the
libtraceevent.pc file is not created in tho output directory that is
specified.

Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 3c2bd5619c3b..3f96c1c7b4d6 100644
--- a/Makefile
+++ b/Makefile
@@ -52,15 +52,15 @@ includedir_relative = traceevent
 includedir = $(prefix)/include/$(includedir_relative)
 includedir_SQ = '$(subst ','\'',$(includedir))'
 
-PKG_CONFIG_SOURCE_FILE = libtraceevent.pc
-PKG_CONFIG_FILE := $(addprefix $(OUTPUT),$(PKG_CONFIG_SOURCE_FILE))
-
 export man_dir man_dir_SQ INSTALL
 export DESTDIR DESTDIR_SQ
 export EVENT_PARSE_VERSION
 
 include scripts/Makefile.include
 
+PKG_CONFIG_SOURCE_FILE = libtraceevent.pc
+PKG_CONFIG_FILE := $(addprefix $(OUTPUT),$(PKG_CONFIG_SOURCE_FILE))
+
 # copy a bit from Linux kbuild
 
 ifeq ("$(origin V)", "command line")
-- 
2.29.2





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux