summaryrefslogtreecommitdiff
path: root/qpid/cpp/Makefile.am
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-01-24 12:01:48 +0000
committerGordon Sim <gsim@apache.org>2007-01-24 12:01:48 +0000
commitb50d3c120f5758ff459bca2da0846388e005e24c (patch)
tree484c0bc642ca949eed3e08b69eac578ab19e06a5 /qpid/cpp/Makefile.am
parent35765f7bdb37e27b31129bedd1b5f23fa3da689f (diff)
downloadqpid-python-b50d3c120f5758ff459bca2da0846388e005e24c.tar.gz
2007-01-24 Jim Meyering <meyering@redhat.com>
Suggestions from Ralf Corsepius in http://bugzilla.redhat.com/220630. * qpidc.spec.in (BuildRequires): Remove redundant cppunit here, too. The previous removal addressed only the redundant _Requires_. (%configure): Add --disable-static, so as not to build unused static libraries. Generate qpidc.spec. Re-factor/generate even more. * qpidc.spec.in: New file. Use it to generate qpidc.spec, substituting PACKAGE and VERSION from configure.ac. (URL): Omit trailing .tar.gz name. That's specified via "Source0". * Makefile.am (qpidc.spec): New rule. (EXTRA_DIST): Add $(PACKAGE).spec and $(PACKAGE).spec.in. (MAINTAINERCLEANFILES): Define. * qpidc.spec: Remove file. Now it's generated. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@499374 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/Makefile.am')
-rw-r--r--qpid/cpp/Makefile.am15
1 files changed, 13 insertions, 2 deletions
diff --git a/qpid/cpp/Makefile.am b/qpid/cpp/Makefile.am
index 703266f8e9..98f715e6aa 100644
--- a/qpid/cpp/Makefile.am
+++ b/qpid/cpp/Makefile.am
@@ -1,7 +1,11 @@
AUTOMAKE_OPTIONS = 1.9.2 foreign
ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = README-dev DESIGN LICENSE.txt NOTICE.txt README.rhel3 README.txt etc/qpidd
+EXTRA_DIST = \
+ README-dev DESIGN LICENSE.txt NOTICE.txt README.rhel3 README.txt \
+ etc/qpidd \
+ $(PACKAGE).spec \
+ $(PACKAGE).spec.in
SUBDIRS = gen lib tests src docs/api docs/man rpm
@@ -9,7 +13,14 @@ SUBDIRS = gen lib tests src docs/api docs/man rpm
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
-.PHONY: rpm srpm
+# 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.
+qpidc.spec: %: %.in
+ sed 's/@''PACKAGE@/@PACKAGE@/;s/@''VERSION@/@VERSION@/' $< > $@-tmp
+ mv $@-tmp $@
+MAINTAINERCLEANFILES = $(PACKAGE).spec
+.PHONY: rpm srpm
rpm srpm:
cd rpm && $(MAKE) $(MAKEFLAGS_AM) $@