From: Stefan Hajnoczi <stefanha@redhat.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Jeff Moyer <jmoyer@redhat.com>,
Aarushi Mehta <mehta.aaru20@gmail.com>,
linux-block@vger.kernel.org, Julia Suvorova <jusual@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: [PATCH liburing v2 2/3] Makefile: add missing .pc dependency on .spec file
Date: Mon, 4 Nov 2019 16:55:23 +0100 [thread overview]
Message-ID: <20191104155524.58422-3-stefanha@redhat.com> (raw)
In-Reply-To: <20191104155524.58422-1-stefanha@redhat.com>
The version number is extracted from the .spec file. Make .pc depend on
.spec so that VERSION variable substitutions are always up-to-date.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index cc457bb..8af1c3a 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ ifneq ($(MAKECMDGOALS),clean)
include config-host.mak
endif
-%.pc: %.pc.in config-host.mak
+%.pc: %.pc.in config-host.mak $(SPECFILE)
sed -e "s%@prefix@%$(prefix)%g" \
-e "s%@libdir@%$(libdir)%g" \
-e "s%@includedir@%$(includedir)%g" \
--
2.23.0
next prev parent reply other threads:[~2019-11-04 15:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 15:55 [PATCH liburing v2 0/3] Fedora 31 RPM improvements Stefan Hajnoczi
2019-11-04 15:55 ` [PATCH liburing v2 1/3] spec: update RPM version number to 0.2 Stefan Hajnoczi
2019-11-04 15:55 ` Stefan Hajnoczi [this message]
2019-11-04 15:55 ` [PATCH liburing v2 3/3] spec: Fedora RPM cleanups Stefan Hajnoczi
2019-11-04 15:59 ` Jens Axboe
2019-11-05 7:40 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191104155524.58422-3-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=axboe@kernel.dk \
--cc=jmoyer@redhat.com \
--cc=jusual@redhat.com \
--cc=linux-block@vger.kernel.org \
--cc=mehta.aaru20@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox