git » libfiu » commit d5baded

libfiu: Put the version in the Makefile and use it to generate libfiu.pc

author Alberto Bertogli
2009-07-23 15:03:37 UTC
committer Alberto Bertogli
2009-07-23 15:03:37 UTC
parent 58df040ff5a56fb729461702f1f7fb5fc0c91501

libfiu: Put the version in the Makefile and use it to generate libfiu.pc

In future commits we will make further use of $(LIB_VER).

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libfiu/Makefile +4 -1
libfiu/libfiu.pc.in +1 -1

diff --git a/libfiu/Makefile b/libfiu/Makefile
index e312976..3392992 100644
--- a/libfiu/Makefile
+++ b/libfiu/Makefile
@@ -27,6 +27,8 @@ else
 	NICE_CC = $(CC)
 endif
 
+LIB_VER=0.12
+
 
 default: all
 
@@ -35,7 +37,8 @@ all: libs libfiu.pc
 libfiu.pc: build-flags libfiu.pc.in
 	@echo "generating libfiu.pc"
 	@cat libfiu.pc.in | \
-		sed 's@++PREFIX++@$(PREFIX)@g' \
+		sed 's@++PREFIX++@$(PREFIX)@g' | \
+		sed 's@++LIB_VER++@$(LIB_VER)@g' \
 		> libfiu.pc
 
 libs: libfiu.so libfiu.a
diff --git a/libfiu/libfiu.pc.in b/libfiu/libfiu.pc.in
index 4f1907d..de3e08b 100644
--- a/libfiu/libfiu.pc.in
+++ b/libfiu/libfiu.pc.in
@@ -6,7 +6,7 @@ includedir=${prefix}/include
 Name: libfiu
 Description: Fault injection in userspace
 URL: http://blitiri.com.ar/p/libfiu/
-Version: 0.12
+Version: ++LIB_VER++
 Libs: -L${libdir} -lfiu
 Cflags: -I${includedir}