[libdmapsharing] Reorder build and generate libdmapsharing-API.pc at build time



commit 05dbb370f72bde8aa7e34747d2b4ee9266672ae5
Author: W. Michael Petullo <mike flyn org>
Date:   Thu Jan 20 08:49:32 2011 -0600

    Reorder build and generate libdmapsharing-API.pc at build time
    
    See also https://bugzilla.gnome.org/show_bug.cgi?id=640058.
    Signed-off-by: W. Michael Petullo <mike flyn org>

 Makefile.am                                      |   15 +++------------
 configure.ac                                     |    2 +-
 libdmapsharing.pc.in => libdmapsharing-3.0.pc.in |    0
 3 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6ed0368..e067ee1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,23 +1,14 @@
-SUBDIRS = docs libdmapsharing tests vala
+SUBDIRS = libdmapsharing vala tests docs
 DIST_SUBDIRS = $(SUBDIRS) m4 media
 
-### all of the standard pc files we need to generate
 # pcfiles = libdmapsharing- LIBDMAPSHARING_MAJORMINOR@.pc
 pcfiles = libdmapsharing- API_VERSION@.pc
 
-all-local: $(pcfiles)
-
-### how to generate pc files
-# %- LIBDMAPSHARING_MAJORMINOR@.pc: %.pc
-%- API_VERSION@.pc: %.pc
-	cp $< $@
-
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = $(pcfiles)
 
-EXTRA_DIST =				\
-	autogen.sh			\
-	libdmapsharing.pc.in		\
+EXTRA_DIST =					\
+	autogen.sh				\
 	README-Memory
 
 CLEANFILES = $(pcfiles)
diff --git a/configure.ac b/configure.ac
index cdde04e..8c5bc01 100644
--- a/configure.ac
+++ b/configure.ac
@@ -376,7 +376,7 @@ AC_SUBST(DMAP_HAVE_UNALIGNED_ACCESS_DEFINE)
 AC_OUTPUT([
 Makefile
 docs/Makefile
-libdmapsharing.pc
+libdmapsharing-${API_VERSION}.pc
 libdmapsharing/Makefile
 libdmapsharing/dmap-config.h
 tests/Makefile
diff --git a/libdmapsharing.pc.in b/libdmapsharing-3.0.pc.in
similarity index 100%
rename from libdmapsharing.pc.in
rename to libdmapsharing-3.0.pc.in



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]