Skip to content

Commit a5caee5

Browse files
committed
Makefile: make install target depend on pkg-config file generation
The install target needs to depend on the generation of the libkrun.pc file, this is because the libkrun.pc file might already exists and be generated, but it could be made using a different PREFIX, which would lead to the installed libkrun.pc pointing to the wrong prefix. Signed-off-by: Matej Hrica <[email protected]>
1 parent 12bc13e commit a5caee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ libkrun.pc: libkrun.pc.in Makefile
124124
libkrun.pc.in > $@-t
125125
mv $@-t $@
126126

127-
install:
127+
install: libkrun.pc
128128
install -d $(DESTDIR)$(PREFIX)/$(LIBDIR_$(OS))/
129129
install -d $(DESTDIR)$(PREFIX)/$(LIBDIR_$(OS))/pkgconfig
130130
install -d $(DESTDIR)$(PREFIX)/include

0 commit comments

Comments
 (0)