defs.mk, make.mk: Add CREATE_PKG_CONFIG variable

It was possible for DEVEL_TARGETS to contain install_PKG_CONFIG without a
package config file being built, fixed that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-06-03 09:06:41 +00:00
commit c480eeaaca
2 changed files with 17 additions and 10 deletions

View file

@ -464,6 +464,10 @@ endif
# -- PKG_CONFIG
ifneq ($(findstring $(TARGET_OS),linux),)
CREATE_PKG_CONFIG ?= true
endif
ifeq ($(CREATE_PKG_CONFIG),true)
INSTALLATION_FILE_TYPES += PKG_CONFIG
PKG_CONFIG += $(sort $(filter-out $(DONT_INSTALL),$(wildcard *.pc) $(LOCAL_PKG_CONFIG)))
ifeq ($(DEVELOPMENT),true)