From: Mauro Carvalho Chehab Date: Sat, 18 Feb 2023 08:08:08 +0000 (+0100) Subject: Makefile.am: fix mock build target X-Git-Tag: v0.8.0~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=271824ffe8e8e4493bc79e8142cb6a90c9e0474a;p=users%2Fmchehab%2Frasdaemon.git Makefile.am: fix mock build target Mock now makes mandatory to add the install dir, otherwise it refuses to build. So, add it. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/.gitignore b/.gitignore index 18cc6e4..8cd7382 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .deps/ autom4te.cache/ +SRPMS/ misc/rasdaemon.spec misc/ras-mc-ctl.service misc/rasdaemon.service diff --git a/Makefile.am b/Makefile.am index a9832cc..56c144e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -97,7 +97,7 @@ srpm: dist-bzip2 rpmbuild -bs misc/@PACKAGE@.spec mock: srpm - mock `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm + mock --resultdir="./SRPMS" `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm rpmlint: rpmlint misc/@PACKAGE@.spec `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm `rpm --eval %{_topdir}`/RPMS/*/@PACKAGE@-@PACKAGE_VERSION@*.rpm