1 include ..
/..
/..
/scripts
/Makefile.
include
2 include ..
/..
/..
/scripts
/utilities.mak
6 RMDIR ?
= rmdir
--ignore-fail-on-non-empty
15 mandir ?
= $(prefix)/man
16 man8dir = $(mandir)/man8
18 MAN8_RST
= $(wildcard *.rst
)
20 _DOC_MAN8
= $(patsubst %.rst
,%.8,$(MAN8_RST
))
21 DOC_MAN8
= $(addprefix $(OUTPUT
),$(_DOC_MAN8
))
26 RST2MAN_DEP
:= $(shell command
-v rst2man
2>/dev
/null
)
30 $(error
"rst2man not found, but required to generate man pages")
32 $(QUIET_GEN
)rst2man
$< > $@
35 $(call QUIET_CLEAN
, Documentation
)
39 $(call QUIET_INSTALL
, Documentation-man
)
40 $(Q
)$(INSTALL
) -d
-m
755 $(DESTDIR
)$(man8dir)
41 $(Q
)$(INSTALL
) -m
644 $(DOC_MAN8
) $(DESTDIR
)$(man8dir)
44 $(call QUIET_UNINST
, Documentation-man
)
45 $(Q
)$(RM
) $(addprefix $(DESTDIR
)$(man8dir)/,$(_DOC_MAN8
))
46 $(Q
)$(RMDIR
) $(DESTDIR
)$(man8dir)
48 .PHONY
: man man8
clean install uninstall