From 80cb1553a30d7804d1521691e9b178c7613eaa8c Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Wed, 21 Jul 2021 17:22:29 +0200 Subject: [PATCH] hsavmcore: Avoid recompilation of overlay during install step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit overlay.o was being recompiled during the install step because it depended on the target check-dep-fuse which is phony and, therefore, always outdated. The solution is to create an empty file for the target check-dep-fuse after its successful completion. This prevents make from rebuilding overlay.o during installation. Closes: https://github.com/ibm-s390-linux/s390-tools/pull/118 Fixes: 5a7d2a58c8b3 ("hsavmcore: Fix fuse dependency checking") Signed-off-by: Alexander Egorenkov Suggested-by: Ingo Franzki Signed-off-by: Jan Höppner --- hsavmcore/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hsavmcore/Makefile b/hsavmcore/Makefile index 7c1d4fd6..82e6abcd 100644 --- a/hsavmcore/Makefile +++ b/hsavmcore/Makefile @@ -69,6 +69,7 @@ check-dep-fuse: "fuse.h", \ "fuse-devel or libfuse-dev", \ "HAVE_FUSE=0") + touch check-dep-fuse install: all $(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 hsavmcore \ @@ -81,6 +82,6 @@ install: all endif # HAVE_FUSE clean: - rm -f hsavmcore $(objects) + rm -f hsavmcore $(objects) check-dep-fuse .PHONY: all install clean