1 include ../../../scripts/Makefile.include
2 include ../../../scripts/utilities.mak
7 # Make the path relative to DESTDIR, not prefix
11 mandir ?= $(prefix)/share/man
12 man8dir = $(mandir)/man8
14 MAN8_RST = $(wildcard *.rst)
16 _DOC_MAN8 = $(patsubst %.rst,%.8,$(MAN8_RST))
17 DOC_MAN8 = $(addprefix $(OUTPUT),$(_DOC_MAN8))
26 $(call QUIET_CLEAN, Documentation) $(RM) $(DOC_MAN8)
29 $(call QUIET_INSTALL, Documentation-man) \
30 $(INSTALL) -d -m 755 $(DESTDIR)$(man8dir); \
31 $(INSTALL) -m 644 $(DOC_MAN8) $(DESTDIR)$(man8dir);
33 .PHONY: man man8 clean install