[lockdev-devel] [PATCH 21/22] add pkgconfig file

Ludwig Nussel ludwig.nussel at suse.de
Fri Feb 26 10:37:21 UTC 2010


---
 Makefile.am |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index d229a00..0aee4fe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,15 @@
 SUBDIRS = src docs
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = lockdev.pc
+
+lockdev.pc: lockdev.pc.in Makefile
+	sed -e 's, at libdir\@,$(libdir),g' \
+	    -e 's, at prefix\@,$(prefix),g' \
+	    -e 's, at exec_prefix\@,$(exec_prefix),g' \
+	    -e 's, at includedir\@,$(includedir),g' \
+	    -e 's, at VERSION\@,$(VERSION),g' \
+	    < $< > $@
+
+CLEANFILES = lockdev.pc
+EXTRA_DIST = lockdev.pc.in
-- 
1.6.4.2




More information about the lockdev-devel mailing list