| include ../../scripts/Makefile.include |
| include ../../scripts/utilities.mak |
| a2x_path := $(call get-executable,$(A2X)) |
| ifneq ($(findstring $(MAKEFLAGS),s),s) |
| QUIET_A2X = @echo ' A2X '$@; |
| $(error "You need to install asciidoc for man pages") |
| $(QUIET_A2X)$(A2X) --doctype manpage --format manpage $< |
| install -d -m 755 $(INSTALL_ROOT)/$(MAN1DIR) |
| install -m 644 kvm_stat.1 $(INSTALL_ROOT)/$(MAN1DIR) |
| install -d -m 755 $(INSTALL_ROOT)/$(BINDIR) |
| install -m 755 -p "kvm_stat" "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)" |
| install: install-tools install-man |
| .PHONY: all clean man install-tools install-man install |