summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-11-05 08:39:16 +0100
committerJens Axboe <axboe@kernel.dk>2019-11-05 08:13:39 -0700
commit9f4714c22c63a967ada9b998b433b5fcb718743f (patch)
treea6e823f219abfd0612f0f679a72afefda8a14ca6 /Makefile
parent9ba6a2ac9304fd3b5602274c9d4304655a88465d (diff)
downloadliburing-9f4714c22c63a967ada9b998b433b5fcb718743f.tar.gz
liburing-9f4714c22c63a967ada9b998b433b5fcb718743f.tar.bz2
Makefile: add missing .pc dependency on .spec file
The version number is extracted from the .spec file. Make .pc depend on .spec so that VERSION variable substitutions are always up-to-date. Acked-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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" \