1 # SPDX-License-Identifier: GPL-2.0
2 include ../../scripts/Makefile.include
3 include ../../scripts/utilities.mak
11 a2x_path := $(call get-executable,$(A2X))
15 ifneq ($(findstring $(MAKEFLAGS),s),s)
17 QUIET_A2X = @echo ' A2X '$@;
23 $(error "You need to install asciidoc for man pages")
25 $(QUIET_A2X)$(A2X) --doctype manpage --format manpage $<
34 install -d -m 755 $(INSTALL_ROOT)/$(MAN1DIR)
35 install -m 644 kvm_stat.1 $(INSTALL_ROOT)/$(MAN1DIR)
38 install -d -m 755 $(INSTALL_ROOT)/$(BINDIR)
39 install -m 755 -p "kvm_stat" "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"
41 install: install-tools install-man
42 .PHONY: all clean man install-tools install-man install