Debian Codegraph @

qemu-stubs/Makefile

raw symbols SCIP
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Zygmunt Krynicki
3 DESTDIR ?=
4
5 prefix ?= /usr/local
6 exec_prefix ?= $(prefix)
7 bindir ?= $(exec_prefix)/bin
8 snapdir ?= /snap
9
10 STUBS = qemu-system-x86_64 qemu-system-aarch64 qemu-system-riscv64 qemu-system-s390x qemu-system-ppc64
11 .PHONY: all
12 all::
13
14 .PHONY: clean
15 clean::
16
17 .PHONY: install
18 install:: $(STUBS) qemu-component-symlinks $(if $(DESTDIR),| $(DESTDIR))
19 install -m 755 -d $(DESTDIR)$(bindir)
20 install -m 755 -t $(DESTDIR)$(bindir) $(STUBS) qemu-component-symlinks qemu-var-tmp
21
22 ifneq (,$(DESTDIR))
23 $(DESTDIR):
24 mkdir -p $(DESTDIR)
25 endif
26
27 .PHONY: check
28 check: SHELLCHECK ?= $(or $(shell command -v shellcheck),$(error program shellcheck is required))
29 check: $(STUBS) qemu-component-symlinks qemu-var-tmp
30 $(SHELLCHECK) $^
31
32 .PHONY: fmt
33 fmt: SHFMT ?= $(or $(shell command -v shfmt),$(error program shfmt is required))
34 fmt: $(STUBS) qemu-component-symlinks qemu-var-tmp
35 $(SHFMT) -w $^