+rpm-local:
+ @(if test -z "$(RPMBUILD)"; then \
+ echo -e "\n" \
+ "*** Required util 'rpmbuild' missing. Please install the\n" \
+ "*** package for your distribution which provides 'rpmbuild',\n" \
+ "*** re-run configure, and try again.\n"; \
+ exit 1; \
+ fi; \
+ $(MKDIR_P) $(rpmbuilddir)/TMP && \
+ $(MKDIR_P) $(rpmbuilddir)/BUILD && \
+ $(MKDIR_P) $(rpmbuilddir)/RPMS && \
+ $(MKDIR_P) $(rpmbuilddir)/SRPMS && \
+ $(MKDIR_P) $(rpmbuilddir)/SPECS && \
+ $(MKDIR_P) $(rpmbuilddir)/SOURCES)
+
+rpms: srpm
+ rpmbuilddir=`mktemp -t -d rpmbuild-@PACKAGE@-$$USER-XXXXXXXX`; \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ rpmbuilddir="$$rpmbuilddir" rpm-local || exit 1; \
+ $(RPMBUILD) \
+ --define "_tmppath $$rpmbuilddir/TMP" \
+ --define "_topdir $$rpmbuilddir" \
+ @RPMBUILD_BINARY_ARGS@ \
+ --rebuild $(distdir)-*.src.rpm || exit 1; \
+ cp $$rpmbuilddir/RPMS/*/*.rpm $(top_srcdir) || exit 1; \
+ rm -rf $$rpmbuilddir