diff mbox series

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

Message ID 20201209042120.532937710@goodmis.org (mailing list archive)
State Accepted
Headers show
Series libtraceevent: Clean up source directory | expand

Commit Message

Steven Rostedt Dec. 9, 2020, 4:19 a.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

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@goodmis.org>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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")