[libchamplain] Add version number to .pc files during configure
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Add version number to .pc files during configure
- Date: Fri, 18 Mar 2011 00:32:05 +0000 (UTC)
commit 452501c10c62264144ad1825d55720d38bc873b9
Author: JiÅ?Ã Techet <techet gmail com>
Date: Fri Mar 18 01:31:52 2011 +0100
Add version number to .pc files during configure
Makefile.am | 14 +-------------
configure.ac | 12 ++++++------
2 files changed, 7 insertions(+), 19 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b5746f9..0c8d619 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,28 +4,16 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
pcfiles = champlain- CHAMPLAIN_API_VERSION@.pc
other_pcfiles = champlain- CHAMPLAIN_API_VERSION@-uninstalled.pc
-champlain- CHAMPLAIN_API_VERSION@.pc: champlain.pc
- @cp -f $< $@
-champlain- CHAMPLAIN_API_VERSION@-uninstalled.pc: champlain-uninstalled.pc
- @cp -f $< $@
if ENABLE_GTK
SUBDIRS += champlain-gtk
pcfiles += champlain-gtk- CHAMPLAIN_API_VERSION@.pc
-champlain-gtk- CHAMPLAIN_API_VERSION@.pc: champlain-gtk.pc
- @cp -f $< $@
other_pcfiles += champlain-gtk- CHAMPLAIN_API_VERSION@-uninstalled.pc
-champlain-gtk- CHAMPLAIN_API_VERSION@-uninstalled.pc: champlain-gtk-uninstalled.pc
- @cp -f $< $@
endif
if ENABLE_MEMPHIS
pcfiles += champlain-memphis- CHAMPLAIN_API_VERSION@.pc
-champlain-memphis- CHAMPLAIN_API_VERSION@.pc: champlain-memphis.pc
- @cp -f $< $@
other_pcfiles += champlain-memphis- CHAMPLAIN_API_VERSION@-uninstalled.pc
-champlain-memphis- CHAMPLAIN_API_VERSION@-uninstalled.pc: champlain-memphis-uninstalled.pc
- @cp -f $< $@
endif
pkgconfig_DATA = $(pcfiles)
@@ -41,7 +29,7 @@ EXTRA_DIST = \
champlain.pc.in \
champlain-uninstalled.pc.in
-CLEANFILES = $(pcfiles) $(other_pcfiles)
+DISTCLEANFILES = $(pcfiles) $(other_pcfiles)
all: $(other_pcfiles)
diff --git a/configure.ac b/configure.ac
index f50ffa6..5e3d4cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -219,10 +219,10 @@ AC_CONFIG_FILES([build/Makefile
docs/reference/version.xml
docs/reference-gtk/Makefile
docs/reference-gtk/version.xml
- champlain.pc
- champlain-uninstalled.pc
- champlain-gtk.pc
- champlain-gtk-uninstalled.pc
+ champlain-$CHAMPLAIN_API_VERSION.pc:champlain.pc.in
+ champlain-$CHAMPLAIN_API_VERSION-uninstalled.pc:champlain-uninstalled.pc.in
+ champlain-gtk-$CHAMPLAIN_API_VERSION.pc:champlain-gtk.pc.in
+ champlain-gtk-$CHAMPLAIN_API_VERSION-uninstalled.pc:champlain-gtk-uninstalled.pc.in
champlain-gtk/Makefile
bindings/Makefile
bindings/vala/Makefile
@@ -233,8 +233,8 @@ AC_CONFIG_FILES([build/Makefile
bindings/vala/champlain-gtk/Makefile
bindings/vala/champlain-gtk/create.sh
bindings/vala/demos/Makefile
- champlain-memphis.pc
- champlain-memphis-uninstalled.pc])
+ champlain-memphis-$CHAMPLAIN_API_VERSION.pc:champlain-memphis.pc.in
+ champlain-memphis-$CHAMPLAIN_API_VERSION-uninstalled.pc:champlain-memphis-uninstalled.pc.in])
AC_CONFIG_FILES([Makefile],
[chmod +x bindings/vala/champlain/create.sh
chmod +x bindings/vala/champlain-gtk/create.sh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]