summaryrefslogtreecommitdiff
path: root/qpid/cpp/Makefile.am
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-12-20 14:40:09 +0000
committerAlan Conway <aconway@apache.org>2006-12-20 14:40:09 +0000
commitc7dc1bdb194bc455f1fbb6a1b941275855a042d7 (patch)
treeb21d04482238b7031dce70b6bcd373597f746254 /qpid/cpp/Makefile.am
parent909f7f24f12abedbe3b96f5f6e552995f37c5cfe (diff)
downloadqpid-python-c7dc1bdb194bc455f1fbb6a1b941275855a042d7.tar.gz
make rpm in cpp directory builds qpidc RPMs in default locations.
Note: you need to chown or chmod the directories under /usr/src/redhat/RPMS/i386 to be writable for this to work, there is probably a better solution. Building RPMs as root is a Bad Idea. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/Makefile.am')
-rw-r--r--qpid/cpp/Makefile.am17
1 files changed, 13 insertions, 4 deletions
diff --git a/qpid/cpp/Makefile.am b/qpid/cpp/Makefile.am
index 17803f6b80..9bcec9b312 100644
--- a/qpid/cpp/Makefile.am
+++ b/qpid/cpp/Makefile.am
@@ -1,10 +1,7 @@
AUTOMAKE_OPTIONS = 1.9.2 foreign
ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = README.txt README-dev DESIGN LICENSE.txt NOTICE.txt README.rhel3
-dist_doc_DATA = README.txt
-
-dist_sysconf_DATA = etc/init.d/qpidd
+EXTRA_DIST = README-dev DESIGN LICENSE.txt NOTICE.txt README.rhel3 README.txt etc/qpidd
SUBDIRS = gen lib tests src docs/api docs/man
@@ -12,3 +9,15 @@ SUBDIRS = gen lib tests src docs/api docs/man
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
+# Convenience targets for making RPMs.
+RPM_TAR=/usr/src/redhat/SOURCES/$(distdir).tar.gz
+
+$(RPM_TAR): dist-gzip
+ cp $(distdir).tar.gz $(RPM_TAR)
+ rpmbuild -bs -v qpidc.spec
+
+srpm: $(RPM_TAR)
+ rpmbuild -bs -v qpidc.spec
+
+rpm: $(RPM_TAR)
+ rpmbuild -ba -v qpidc.spec