summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAdrien Destugues <pulkomandy@pulkomandy.tk>2014-06-08 18:12:27 +0200
committerVincent Sanders <vince@kyllikki.org>2015-03-21 21:45:04 +0000
commitcdde8cbaed88f06c373f6d5add7273fd97e77d21 (patch)
tree589976a42f15cf27b3f746b0a7653fb4787c843a /makefiles
parent6906b39b909b3248434c63f2ebeb380543911546 (diff)
downloadbuildsystem-cdde8cbaed88f06c373f6d5add7273fd97e77d21.tar.gz
buildsystem-cdde8cbaed88f06c373f6d5add7273fd97e77d21.tar.bz2
Add support for INCLUDEDIR in pkg-config files.
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/Makefile.tools5
-rw-r--r--makefiles/Makefile.top1
2 files changed, 6 insertions, 0 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index 8a104d7..74bc17f 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -22,6 +22,8 @@
# (defaults to /usr/local)
# LIBDIR Library installation directory in ${PREFIX}
# (defaults to lib)
+# INCLUDEDIR Header installation directory in ${PREFIX}
+# (defaults to include)
#
###############################################################################
@@ -241,6 +243,9 @@ PREFIX ?= /usr/local
# Default libdir
LIBDIR ?= lib
+# Default includedir
+INCLUDEDIR ?= include
+
###############################################################################
# Tool defaults
###############################################################################
diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top
index 38922d1..07d3373 100644
--- a/makefiles/Makefile.top
+++ b/makefiles/Makefile.top
@@ -295,6 +295,7 @@ define install_pkgconfig
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
+ -e 's#INCLUDEDIR#$(INCLUDEDIR)#' \
-e 's#VERSION#$(COMPONENT_VERSION)#' \
-e 's#REQUIRED#$(__required)#' \
-e 's#LIBRARIES#$(__libraries)#' \