aboutsummaryrefslogtreecommitdiff
path: root/pkgconfig/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 /pkgconfig/Makefile
parent42ca23b878cc43a710b1a2bf0899864bc671663b (diff)
Add pkg-config support, fixes #187.
Diffstat (limited to 'pkgconfig/Makefile')
-rw-r--r--pkgconfig/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgconfig/Makefile b/pkgconfig/Makefile
new file mode 100644
index 00000000..cdcf8be8
--- /dev/null
+++ b/pkgconfig/Makefile
@@ -0,0 +1,11 @@
+DIR= ${LIBDIR}/pkgconfig
+SRCS= einfo.pc.in openrc.pc.in
+INC= einfo.pc openrc.pc
+
+sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1${GITVER}\"/p' ../../Makefile > version.h
+
+SED_EXTRA= -e 's:@VERSION@:${VERSION}:g'
+
+MK= ../mk
+include ../Makefile.inc
+include ${MK}/scripts.mk