From 4eb9d4578b5f9c2e9e9e6e0c0eb885fd23188f56 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 13 May 2024 19:24:12 +0200 Subject: [PATCH] Check dependencies. --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8abf09a..9f2fc42 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ -SRCS := qemu-vm qemu-vm-* TARGET ?= /usr/local -install: $(SRCS) +ARCH != uname -m +SRCS := qemu-vm qemu-vm-* + +install: check_deps $(SRCS) install -Dm 0755 --owner=root --group=root -t $(TARGET)/bin $(SRCS) -.PHONY: install +check_deps: + @command -v qemu-system-$(ARCH) + @command -v qemu-affinity + @command -v swtpm + @command -v dnsmasq + +.PHONY: install check_deps