]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Generalize pkg-config file handling
authorGuillem Jover <guillem@hadrons.org>
Wed, 23 Feb 2011 13:01:06 +0000 (14:01 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 14 May 2011 11:43:49 +0000 (13:43 +0200)
Use a make pattern for the .pc rule to allow using more than one .pc
file. And generalize the .gitignore entry.

.gitignore
Makefile

index 29dbeb0ec7dd59811b20fb808216459cbee576fb..799fb3d659d1cf864b553beb9c092279c5ff7c7b 100644 (file)
@@ -1,5 +1,5 @@
 ChangeLog
-libbsd.pc
+*.pc
 *.lo
 *.o
 *.so*
index 9d3585f481b6446dc997b8925d1e3dbc3be3ef9a..b333ef7c55983470dac5ea72eecdab88246d54ee 100644 (file)
--- 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):' \