summaryrefslogtreecommitdiff
path: root/src
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 /src
parent42ca23b878cc43a710b1a2bf0899864bc671663b (diff)
downloadopenrc-07f9be7b1c92fbb64c4a08dffb4db30da8764d66.tar.gz
openrc-07f9be7b1c92fbb64c4a08dffb4db30da8764d66.tar.bz2
openrc-07f9be7b1c92fbb64c4a08dffb4db30da8764d66.tar.xz
Add pkg-config support, fixes #187.
Diffstat (limited to 'src')
-rw-r--r--src/rc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index b5fc189..78b862d 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -34,6 +34,7 @@ CPPFLAGS+= -I../includes -I../librc -I../libeinfo
LDFLAGS+= -L../librc -L../libeinfo
LDADD+= -lutil -lrc -leinfo
+include ../../Makefile.inc
MK= ../../mk
include ${MK}/debug.mk
include ${MK}/prog.mk
@@ -46,7 +47,7 @@ include ${MK}/${MKPAM}.mk
${SRCS}: version.h
version.h:
- sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1${GITVER}\"/p' ../../Makefile > version.h
+ echo "#define VERSION \"${VERSION}${GITVER}\"" >version.h
if test -n "${BRANDING}"; then \
echo "#define BRANDING \"${BRANDING}\"" >> version.h; \
fi