summaryrefslogtreecommitdiff
path: root/qpid/cpp/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/Makefile.am')
-rw-r--r--qpid/cpp/Makefile.am17
1 files changed, 7 insertions, 10 deletions
diff --git a/qpid/cpp/Makefile.am b/qpid/cpp/Makefile.am
index 54e7041e99..1a7432ffe0 100644
--- a/qpid/cpp/Makefile.am
+++ b/qpid/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.
#