|
@@ -15,12 +15,15 @@ prefix ?= /usr/local
|
|
mandir ?= $(prefix)/man
|
|
mandir ?= $(prefix)/man
|
|
man8dir = $(mandir)/man8
|
|
man8dir = $(mandir)/man8
|
|
|
|
|
|
-MAN8_RST = $(wildcard *.rst)
|
|
|
|
|
|
+# Load targets for building eBPF helpers man page.
|
|
|
|
+include ../../Makefile.helpers
|
|
|
|
+
|
|
|
|
+MAN8_RST = $(filter-out $(HELPERS_RST),$(wildcard *.rst))
|
|
|
|
|
|
_DOC_MAN8 = $(patsubst %.rst,%.8,$(MAN8_RST))
|
|
_DOC_MAN8 = $(patsubst %.rst,%.8,$(MAN8_RST))
|
|
DOC_MAN8 = $(addprefix $(OUTPUT),$(_DOC_MAN8))
|
|
DOC_MAN8 = $(addprefix $(OUTPUT),$(_DOC_MAN8))
|
|
|
|
|
|
-man: man8
|
|
|
|
|
|
+man: man8 helpers
|
|
man8: $(DOC_MAN8)
|
|
man8: $(DOC_MAN8)
|
|
|
|
|
|
RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null)
|
|
RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null)
|
|
@@ -31,16 +34,16 @@ ifndef RST2MAN_DEP
|
|
endif
|
|
endif
|
|
$(QUIET_GEN)rst2man $< > $@
|
|
$(QUIET_GEN)rst2man $< > $@
|
|
|
|
|
|
-clean:
|
|
|
|
|
|
+clean: helpers-clean
|
|
$(call QUIET_CLEAN, Documentation)
|
|
$(call QUIET_CLEAN, Documentation)
|
|
$(Q)$(RM) $(DOC_MAN8)
|
|
$(Q)$(RM) $(DOC_MAN8)
|
|
|
|
|
|
-install: man
|
|
|
|
|
|
+install: man helpers-install
|
|
$(call QUIET_INSTALL, Documentation-man)
|
|
$(call QUIET_INSTALL, Documentation-man)
|
|
$(Q)$(INSTALL) -d -m 755 $(DESTDIR)$(man8dir)
|
|
$(Q)$(INSTALL) -d -m 755 $(DESTDIR)$(man8dir)
|
|
$(Q)$(INSTALL) -m 644 $(DOC_MAN8) $(DESTDIR)$(man8dir)
|
|
$(Q)$(INSTALL) -m 644 $(DOC_MAN8) $(DESTDIR)$(man8dir)
|
|
|
|
|
|
-uninstall:
|
|
|
|
|
|
+uninstall: helpers-uninstall
|
|
$(call QUIET_UNINST, Documentation-man)
|
|
$(call QUIET_UNINST, Documentation-man)
|
|
$(Q)$(RM) $(addprefix $(DESTDIR)$(man8dir)/,$(_DOC_MAN8))
|
|
$(Q)$(RM) $(addprefix $(DESTDIR)$(man8dir)/,$(_DOC_MAN8))
|
|
$(Q)$(RMDIR) $(DESTDIR)$(man8dir)
|
|
$(Q)$(RMDIR) $(DESTDIR)$(man8dir)
|