Commit 8a99226f16b3cf638d93b23a1c80f9df2d16fd0e

Guillem Jover 2011-02-23T14:01:06

Generalize pkg-config file handling Use a make pattern for the .pc rule to allow using more than one .pc file. And generalize the .gitignore entry.

diff --git a/.gitignore b/.gitignore
index 29dbeb0..799fb3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
 ChangeLog
-libbsd.pc
+*.pc
 *.lo
 *.o
 *.so*
diff --git a/Makefile b/Makefile
index 9d3585f..b333ef7 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ src/md5.3bsd:  src/mdX.3
 src/hash/md5hl.c: src/hash/helper.c
 	sed -e 's:hashinc:bsd/md5.h:g' -e 's:HASH:MD5:g' $< > $@
 
-$(LIB_PKGCONFIG): $(LIB_PKGCONFIG).in
+%.pc: %.pc.in
 	sed -e 's:@VERSION@:$(VERSION):' \
 	    -e 's:@prefix@:$(value prefix):' \
 	    -e 's:@exec_prefix@:$(value exec_prefix):' \