summaryrefslogtreecommitdiff
path: root/cpp/Makefile.am
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-04-12 19:48:08 +0000
committerAlan Conway <aconway@apache.org>2007-04-12 19:48:08 +0000
commitee865f87027fb559d8884cca3f672a8cbdd44ae0 (patch)
tree25d2981a9bcd6d256f23e9d4cc93f1ca29085c92 /cpp/Makefile.am
parentd016124f690820ac5e4d099a4b766e819faf4769 (diff)
downloadqpid-python-ee865f87027fb559d8884cca3f672a8cbdd44ae0.tar.gz
* Add pgg-config support for downstream packages
* Bump version to 0.2 for downstream packages. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@528107 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/Makefile.am')
-rw-r--r--cpp/Makefile.am17
1 files changed, 7 insertions, 10 deletions
diff --git a/cpp/Makefile.am b/cpp/Makefile.am
index 54e7041e99..1a7432ffe0 100644
--- a/cpp/Makefile.am
+++ b/cpp/Makefile.am
@@ -1,14 +1,19 @@
AUTOMAKE_OPTIONS = 1.9.2 foreign
ACLOCAL_AMFLAGS = -I m4
-bin_SCRIPTS = qpid-config
+# pkg-config data file.
+pkgconfigdir = $(libdir)/pkgconfig
+PC=$(PACKAGE).pc
+pkgconfig_DATA = $(PC)
+
+BUILT_SOURCES=$(PACKAGE).pc
SPEC=$(PACKAGE).spec
EXTRA_DIST = \
LICENSE NOTICE README \
etc/qpidd \
- $(SPEC) $(SPEC).in \
+ $(SPEC) $(SPEC).in $(PC) $(PC).in\
rpm/README.qpidd-devel
SUBDIRS = src docs/api docs/man
@@ -17,14 +22,6 @@ SUBDIRS = src docs/api docs/man
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
-# This cannot be done by AC_CONFIG_FILES, because automake's
-# make distcheck target does not like auto-generated files
-# being included in the distributed archive.
-$(SPEC): %: %.in Makefile
- sed 's/@''PACKAGE@/@PACKAGE@/;s/@''VERSION@/@VERSION@/' $< > $@-tmp
- mv $@-tmp $@
-MAINTAINERCLEANFILES = $(SPEC)
-
#
# Build RPMs from the distribution tarball.
#