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.
This commit is contained in:
Guillem Jover 2011-02-23 14:01:06 +01:00
parent 1497d34760
commit 8a99226f16
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
ChangeLog ChangeLog
libbsd.pc *.pc
*.lo *.lo
*.o *.o
*.so* *.so*

View File

@ -154,7 +154,7 @@ src/md5.3bsd: src/mdX.3
src/hash/md5hl.c: src/hash/helper.c src/hash/md5hl.c: src/hash/helper.c
sed -e 's:hashinc:bsd/md5.h:g' -e 's:HASH:MD5:g' $< > $@ 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):' \ sed -e 's:@VERSION@:$(VERSION):' \
-e 's:@prefix@:$(value prefix):' \ -e 's:@prefix@:$(value prefix):' \
-e 's:@exec_prefix@:$(value exec_prefix):' \ -e 's:@exec_prefix@:$(value exec_prefix):' \