aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-10-08 00:19:18 +0100
committerRoy Marples <roy@marples.name>2009-10-08 00:20:43 +0100
commit07f9be7b1c92fbb64c4a08dffb4db30da8764d66 (patch)
treeaf672a5ba3ab19efbdcc63a7796ffd0b610c2984 /Makefile
parent42ca23b878cc43a710b1a2bf0899864bc671663b (diff)
Add pkg-config support, fixes #187.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 86bb2dc0..06e48eb1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,7 @@
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
-NAME= openrc
-VERSION= 0.5.0
-PKG= ${NAME}-${VERSION}
+include Makefile.inc
SUBDIR= conf.d etc init.d man sh src
@@ -16,6 +14,14 @@ _OLDNET_SH= case "${MKOLDNET}" in \
_OLDNET!= ${_OLDNET_SH}
SUBDIR+= ${_OLDNET}$(shell ${_OLDNET_SH})
+# Build pkgconfig or not
+_PKGCONFIG_SH= case "${MKPKGCONFIG}" in \
+ [Yy][Ee][Ss]|"") echo "pkgconfig";; \
+ *) echo "";; \
+ esac
+_PKGCONFIG!= ${_PKGCONFIG_SH}
+SUBDIR+= ${_PKGCONFIG}$(shell ${_PKGCONFIG_SH})
+
# We need to ensure that runlevels is done last
SUBDIR+= runlevels