~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/bpf/Makefile.docs

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/testing/selftests/bpf/Makefile.docs (Architecture mips) and /tools/testing/selftests/bpf/Makefile.docs (Architecture m68k)


  1 # SPDX-License-Identifier: GPL-2.0-only             1 # SPDX-License-Identifier: GPL-2.0-only
  2                                                     2 
  3 include ../../../scripts/Makefile.include           3 include ../../../scripts/Makefile.include
  4 include ../../../scripts/utilities.mak              4 include ../../../scripts/utilities.mak
  5                                                     5 
  6 INSTALL ?= install                                  6 INSTALL ?= install
  7 RM ?= rm -f                                         7 RM ?= rm -f
  8 RMDIR ?= rmdir --ignore-fail-on-non-empty           8 RMDIR ?= rmdir --ignore-fail-on-non-empty
  9                                                     9 
 10 ifeq ($(V),1)                                      10 ifeq ($(V),1)
 11   Q =                                              11   Q =
 12 else                                               12 else
 13   Q = @                                            13   Q = @
 14 endif                                              14 endif
 15                                                    15 
 16 prefix ?= /usr/local                               16 prefix ?= /usr/local
 17 mandir ?= $(prefix)/man                            17 mandir ?= $(prefix)/man
 18 man2dir = $(mandir)/man2                           18 man2dir = $(mandir)/man2
 19 man7dir = $(mandir)/man7                           19 man7dir = $(mandir)/man7
 20                                                    20 
 21 SYSCALL_RST = bpf-syscall.rst                      21 SYSCALL_RST = bpf-syscall.rst
 22 MAN2_RST = $(SYSCALL_RST)                          22 MAN2_RST = $(SYSCALL_RST)
 23                                                    23 
 24 HELPERS_RST = bpf-helpers.rst                      24 HELPERS_RST = bpf-helpers.rst
 25 MAN7_RST = $(HELPERS_RST)                          25 MAN7_RST = $(HELPERS_RST)
 26                                                    26 
 27 _DOC_MAN2 = $(patsubst %.rst,%.2,$(MAN2_RST))      27 _DOC_MAN2 = $(patsubst %.rst,%.2,$(MAN2_RST))
 28 DOC_MAN2 = $(addprefix $(OUTPUT),$(_DOC_MAN2))     28 DOC_MAN2 = $(addprefix $(OUTPUT),$(_DOC_MAN2))
 29                                                    29 
 30 _DOC_MAN7 = $(patsubst %.rst,%.7,$(MAN7_RST))      30 _DOC_MAN7 = $(patsubst %.rst,%.7,$(MAN7_RST))
 31 DOC_MAN7 = $(addprefix $(OUTPUT),$(_DOC_MAN7))     31 DOC_MAN7 = $(addprefix $(OUTPUT),$(_DOC_MAN7))
 32                                                    32 
 33 DOCTARGETS := helpers syscall                      33 DOCTARGETS := helpers syscall
 34                                                    34 
 35 docs: $(DOCTARGETS)                                35 docs: $(DOCTARGETS)
 36 syscall: man2                                      36 syscall: man2
 37 helpers: man7                                      37 helpers: man7
 38 man2: $(DOC_MAN2)                                  38 man2: $(DOC_MAN2)
 39 man7: $(DOC_MAN7)                                  39 man7: $(DOC_MAN7)
 40                                                    40 
 41 RST2MAN_DEP := $(shell command -v rst2man 2>/d     41 RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null)
 42                                                    42 
 43 # Configure make rules for the man page bpf-$1     43 # Configure make rules for the man page bpf-$1.$2.
 44 # $1 - target for scripts/bpf_doc.py               44 # $1 - target for scripts/bpf_doc.py
 45 # $2 - man page section to generate the troff      45 # $2 - man page section to generate the troff file
 46 define DOCS_RULES =                                46 define DOCS_RULES =
 47 $(OUTPUT)bpf-$1.rst: ../../../../include/uapi/     47 $(OUTPUT)bpf-$1.rst: ../../../../include/uapi/linux/bpf.h
 48         $$(QUIET_GEN)../../../../scripts/bpf_d     48         $$(QUIET_GEN)../../../../scripts/bpf_doc.py $1 \
 49                 --filename $$< > $$@               49                 --filename $$< > $$@
 50                                                    50 
 51 $(OUTPUT)%.$2: $(OUTPUT)%.rst                      51 $(OUTPUT)%.$2: $(OUTPUT)%.rst
 52 ifndef RST2MAN_DEP                                 52 ifndef RST2MAN_DEP
 53         $$(error "rst2man not found, but requi     53         $$(error "rst2man not found, but required to generate man pages")
 54 endif                                              54 endif
 55         $$(QUIET_GEN)rst2man --exit-status=1 $     55         $$(QUIET_GEN)rst2man --exit-status=1 $$< > $$@.tmp
 56         $$(QUIET_GEN)mv $$@.tmp $$@                56         $$(QUIET_GEN)mv $$@.tmp $$@
 57                                                    57 
 58 docs-clean-$1:                                     58 docs-clean-$1:
 59         $$(call QUIET_CLEAN, eBPF_$1-manpage)      59         $$(call QUIET_CLEAN, eBPF_$1-manpage)
 60         $(Q)$(RM) $$(DOC_MAN$2) $(OUTPUT)bpf-$     60         $(Q)$(RM) $$(DOC_MAN$2) $(OUTPUT)bpf-$1.rst
 61                                                    61 
 62 docs-install-$1: docs                              62 docs-install-$1: docs
 63         $$(call QUIET_INSTALL, eBPF_$1-manpage     63         $$(call QUIET_INSTALL, eBPF_$1-manpage)
 64         $(Q)$(INSTALL) -d -m 755 $(DESTDIR)$$(     64         $(Q)$(INSTALL) -d -m 755 $(DESTDIR)$$(man$2dir)
 65         $(Q)$(INSTALL) -m 644 $$(DOC_MAN$2) $(     65         $(Q)$(INSTALL) -m 644 $$(DOC_MAN$2) $(DESTDIR)$$(man$2dir)
 66                                                    66 
 67 docs-uninstall-$1:                                 67 docs-uninstall-$1:
 68         $$(call QUIET_UNINST, eBPF_$1-manpage)     68         $$(call QUIET_UNINST, eBPF_$1-manpage)
 69         $(Q)$(RM) $$(addprefix $(DESTDIR)$$(ma     69         $(Q)$(RM) $$(addprefix $(DESTDIR)$$(man$2dir)/,$$(_DOC_MAN$2))
 70         $(Q)$(RMDIR) $(DESTDIR)$$(man$2dir)        70         $(Q)$(RMDIR) $(DESTDIR)$$(man$2dir)
 71                                                    71 
 72 .PHONY: $1 docs-clean-$1 docs-install-$1 docs-     72 .PHONY: $1 docs-clean-$1 docs-install-$1 docs-uninstall-$1
 73 endef                                              73 endef
 74                                                    74 
 75 # Create the make targets to generate manual p     75 # Create the make targets to generate manual pages by name and section
 76 $(eval $(call DOCS_RULES,helpers,7))               76 $(eval $(call DOCS_RULES,helpers,7))
 77 $(eval $(call DOCS_RULES,syscall,2))               77 $(eval $(call DOCS_RULES,syscall,2))
 78                                                    78 
 79 docs-clean: $(foreach doctarget,$(DOCTARGETS),     79 docs-clean: $(foreach doctarget,$(DOCTARGETS), docs-clean-$(doctarget))
 80 docs-install: $(foreach doctarget,$(DOCTARGETS     80 docs-install: $(foreach doctarget,$(DOCTARGETS), docs-install-$(doctarget))
 81 docs-uninstall: $(foreach doctarget,$(DOCTARGE     81 docs-uninstall: $(foreach doctarget,$(DOCTARGETS), docs-uninstall-$(doctarget))
 82                                                    82 
 83 .PHONY: docs docs-clean docs-install docs-unin     83 .PHONY: docs docs-clean docs-install docs-uninstall man2 man7
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php