From: Michael Meffie Date: Mon, 24 Aug 2020 17:12:13 +0000 (-0400) Subject: build: Add rpm target X-Git-Tag: openafs-devel-1_9_0~6 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=8b68f1a4e1e3ae06de0d6c5a8af60ef99cacb83a build: Add rpm target Add a top-level makefile target to build RPMs for Red Hat distributions from the currently checked out commit. The resulting rpms are placed in the packages/rpmbuild/RPMS/ directory. The rpm target is intended to be a convenience for testing changes to the rpm packaging or generating packages for local testing. Change-Id: Id951eb2b03629be59f6258e89e8356fe1fde1ff5 Reviewed-on: https://gerrit.openafs.org/14114 Reviewed-by: Andrew Deason Reviewed-by: Cheyenne Wills Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- diff --git a/Makefile.in b/Makefile.in index 72014bc..0c73bec 100644 --- a/Makefile.in +++ b/Makefile.in @@ -788,6 +788,10 @@ srpm: dist packages/openafs-*-src.tar.bz2 \ packages/openafs-*-doc.tar.bz2 +rpm: srpm + rpmbuild --rebuild --define "_topdir @TOP_OBJDIR@/packages/rpmbuild" \ + packages/openafs-*.src.rpm + dox: if test "x$(DOXYGEN)" != "x"; then \ mkdir -p doc/doxygen/output && $(DOXYGEN) doc/doxygen/Doxyfile; \