]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
Makefile.am: fix mock build target
authorMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 18 Feb 2023 08:08:08 +0000 (09:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 18 Feb 2023 08:09:29 +0000 (09:09 +0100)
Mock now makes mandatory to add the install dir, otherwise it
refuses to build. So, add it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
.gitignore
Makefile.am

index 18cc6e49622ca88e84536d3fb68f9375c64a66a6..8cd738223f736dd4c1d67503100ef71992aaae74 100644 (file)
@@ -1,5 +1,6 @@
 .deps/
 autom4te.cache/
+SRPMS/
 misc/rasdaemon.spec
 misc/ras-mc-ctl.service
 misc/rasdaemon.service
index a9832cc265e55493f020bd679f8e9f25e3eef2a1..56c144e54c7edb1774f050858795432274029314 100644 (file)
@@ -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