This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
fence: master - build: first cut at generating .pc files
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Fri, 30 Jan 2009 11:40:26 +0000 (UTC)
- Subject: fence: master - build: first cut at generating .pc files
Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=b89584f2d9a0158850e830e641c314ce624c66fe
Commit: b89584f2d9a0158850e830e641c314ce624c66fe
Parent: 811cbe1e88e9ce4ea50eb28442e43bf40bb8118c
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri Jan 30 10:57:05 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri Jan 30 12:37:57 2009 +0100
build: first cut at generating .pc files
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
make/libs.mk | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/make/libs.mk b/make/libs.mk
index cfe01c2..e05d69b 100644
--- a/make/libs.mk
+++ b/make/libs.mk
@@ -24,14 +24,24 @@ ifndef MAKESTATICLIB
ifndef SHAREDLIB
SHAREDLIB=$(TARGET).so.${SOMAJOR}.${SOMINOR}
endif
+ ifndef PKGCONF
+ PKGCONF=$(TARGET).pc
+ endif
-all: $(STATICLIB) $(SHAREDLIB)
+all: $(STATICLIB) $(SHAREDLIB) $(PKGCONF)
$(SHAREDLIB): $(OBJS)
$(CC) -shared -o $@ -Wl,-soname=$(TARGET).so.$(SOMAJOR) $^ $(LDFLAGS)
ln -sf $(TARGET).so.$(SOMAJOR).$(SOMINOR) $(TARGET).so
ln -sf $(TARGET).so.$(SOMAJOR).$(SOMINOR) $(TARGET).so.$(SOMAJOR)
+$(PKGCONF): $(S)/$(PKGCONF).in
+ cat $(S)/$(PKGCONF).in | \
+ sed \
+ -e 's#@PREFIX@#${prefix}#g' \
+ -e 's#@VERSION@#${RELEASE_VERSION}#g' \
+ > $@
+
else
all: $(STATICLIB)