From 926db200e44544b3bc533aef3c12ac77d7066d2c Mon Sep 17 00:00:00 2001 From: gbaconni Date: Fri, 5 Nov 2021 17:10:53 +0100 Subject: [PATCH] Improve the virtualbox to help create the VDI with the exact size --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 65b84bf..56f2066 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/11/02 17:47:57 by gbaconni #+# #+# # -# Updated: 2021/11/05 11:19:41 by gbaconni ### lausanne.ch # +# Updated: 2021/11/05 16:51:21 by gbaconni ### ########.fr # # # # **************************************************************************** # @@ -22,8 +22,9 @@ FT = $(shell if test -L ~/goinfre; then echo "yes"; else echo "no"; fi) all: sync virtualbox: - @test -d ~/goinfre/VirtualBox\ VMs || mkdir -p ~/goinfre/VirtualBox\ VMs - @ln -snf ~/goinfre/VirtualBox\ VMs ~/VirtualBox\ VMs + @test -d ~/goinfre/VirtualBox\ VMs || mkdir -p ~/goinfre/VirtualBox\ VMs + @test -L ~/VirtualBox\ VMs || ln -snf ~/goinfre/VirtualBox\ VMs ~/VirtualBox\ VMs + @echo /Applications/VirtualBox.app/Contents/MacOS/VBoxManage createmedium disk --filename ~/goinfre/VirtualBox\\ VMs/$$(basename ~)42/$$(basename ~)42.vdi --size $$(($(SSD)*1024)) --format VDI data: ifeq ($(FT),yes)