summaryrefslogtreecommitdiff
path: root/cpp/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/Makefile.am')
-rw-r--r--cpp/Makefile.am16
1 files changed, 4 insertions, 12 deletions
diff --git a/cpp/Makefile.am b/cpp/Makefile.am
index 9bcec9b312..703266f8e9 100644
--- a/cpp/Makefile.am
+++ b/cpp/Makefile.am
@@ -3,21 +3,13 @@ ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = README-dev DESIGN LICENSE.txt NOTICE.txt README.rhel3 README.txt etc/qpidd
-SUBDIRS = gen lib tests src docs/api docs/man
+SUBDIRS = gen lib tests src docs/api docs/man rpm
# Update libtool, if needed.
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
-# Convenience targets for making RPMs.
-RPM_TAR=/usr/src/redhat/SOURCES/$(distdir).tar.gz
+.PHONY: rpm srpm
-$(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
+rpm srpm:
+ cd rpm && $(MAKE) $(MAKEFLAGS_AM) $@