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