From b2fe707cd4e60c1cde4727aae1deb1708349a50b Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sun, 10 Dec 2023 17:56:27 +0100 Subject: [PATCH] =?UTF-8?q?Makefile=20:=20=C3=A9tape=20de=20cr=C3=A9ation?= =?UTF-8?q?=20des=20r=C3=A9pertoires=20utiles=20=C3=A0=20qemush?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 31e93ab..1c43645 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,14 @@ SRC_C_SOURCES_NAMES := $(notdir $(basename $(wildcard $(SRCD)/*.$(SRC_FMT)))) # Location of C binaries C_BINARIES := $(addprefix $(QEMU_BIN)/,$(SRC_C_SOURCES_NAMES)) -all: $(QEMUSH) $(MODULES) $(C_BINARIES) +# Directories in ~qemu necessary for qemush to work +QEMUSH_DIRS_NAMES := bin launchers images +QEMUSH_DIRS := $(addprefix $(QEMU_HOME)/,$(QEMUSH_DIRS_NAMES)) + +all: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) + +$(QEMUSH_DIRS): + $(SUDO_QEMU) mkdir -p $@ $(QEMUSH): $(SRC_QEMUSH) sudo install -m 755 $^ $@