Check dependencies.
This commit is contained in:
parent
260f0a3cb4
commit
4eb9d4578b
1 changed files with 11 additions and 3 deletions
14
Makefile
14
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
|
||||
|
|
Loading…
Add table
Reference in a new issue