public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED] rpmbuild: fix Makefile rules
@ 2023-11-13 23:53 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2023-11-13 23:53 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Mark Wielaard

	* Makefile.am (rpmbuild): Use mkdir -p. Use $(shell pwd).
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 87debb48..c9d59d4a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -47,9 +47,9 @@ rpm: dist
 	rpmbuild -ts elfutils-@PACKAGE_VERSION@.tar.bz2
 
 rpmbuild: dist
-	mkdir rpmbuild
+	mkdir -p rpmbuild
 	rpmbuild -ta elfutils-@PACKAGE_VERSION@.tar.bz2 \
-		--define "_topdir $(pwd)/rpmbuild"
+		--define "_topdir $(shell pwd)/rpmbuild"
 
 if GCOV
 
-- 
2.39.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-13 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 23:53 [COMMITTED] rpmbuild: fix Makefile rules Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).