aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-05-26 14:26:53 +0100
committerGitHub <noreply@github.com>2021-05-26 14:26:53 +0100
commit527b84199f60b90097aaa94fbdc3876663133a5e (patch)
tree24df3e966dde99282bbc282ecd7e244a0ce96440 /Makefile
parentaee8c0fc124827241ebbe355e3ef737593142e1a (diff)
downloadlibvfio-user-527b84199f60b90097aaa94fbdc3876663133a5e.zip
libvfio-user-527b84199f60b90097aaa94fbdc3876663133a5e.tar.gz
libvfio-user-527b84199f60b90097aaa94fbdc3876663133a5e.tar.bz2
fix `make install` (#531)
And make sure the target is tested in CI. Reported-by: Karol Latecki Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f3b7779..e4dad2f 100644
--- a/Makefile
+++ b/Makefile
@@ -59,10 +59,10 @@ BUILD_DIR = $(BUILD_DIR_BASE)/$(BUILD_TYPE)
INSTALL_PREFIX ?= /usr/local
-.PHONY: all test pytest pytest-valgrind
+.PHONY: all install test pytest pytest-valgrind
.PHONY: pre-push clean realclean tags gcov
-all: $(BUILD_DIR)/Makefile
+all install: $(BUILD_DIR)/Makefile
+$(MAKE) -C $(BUILD_DIR) $@
#
@@ -127,6 +127,7 @@ pre-push: realclean
make test CC=gcc BUILD_TYPE=rel
make test CC=gcc
make pytest-valgrind
+ make install DESTDIR=tmp.install
GCOVS=$(patsubst %.c,%.c.gcov, $(wildcard lib/*.c))