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

TOMOYO Linux Cross Reference
Linux/tools/lib/perf/Documentation/Makefile

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/lib/perf/Documentation/Makefile (Architecture ppc) and /tools/lib/perf/Documentation/Makefile (Architecture alpha)


  1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-      1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
  2 # Most of this file is copied from tools/perf/      2 # Most of this file is copied from tools/perf/Documentation/Makefile
  3                                                     3 
  4 include ../../../scripts/Makefile.include           4 include ../../../scripts/Makefile.include
  5 include ../../../scripts/utilities.mak              5 include ../../../scripts/utilities.mak
  6                                                     6 
  7 MAN3_TXT  = libperf.txt                             7 MAN3_TXT  = libperf.txt
  8 MAN7_TXT  = libperf-counting.txt libperf-sampl      8 MAN7_TXT  = libperf-counting.txt libperf-sampling.txt
  9 MAN_EX    = examples/*.c                            9 MAN_EX    = examples/*.c
 10                                                    10 
 11 MAN_TXT   = $(MAN3_TXT) $(MAN7_TXT)                11 MAN_TXT   = $(MAN3_TXT) $(MAN7_TXT)
 12                                                    12 
 13 _MAN_XML  = $(patsubst %.txt,%.xml,$(MAN_TXT))     13 _MAN_XML  = $(patsubst %.txt,%.xml,$(MAN_TXT))
 14 _MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT)     14 _MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT))
 15 _MAN_3    = $(patsubst %.txt,%.3,$(MAN3_TXT))      15 _MAN_3    = $(patsubst %.txt,%.3,$(MAN3_TXT))
 16 _MAN_7    = $(patsubst %.txt,%.7,$(MAN7_TXT))      16 _MAN_7    = $(patsubst %.txt,%.7,$(MAN7_TXT))
 17                                                    17 
 18 MAN_XML   = $(addprefix $(OUTPUT),$(_MAN_XML))     18 MAN_XML   = $(addprefix $(OUTPUT),$(_MAN_XML))
 19 MAN_HTML  = $(addprefix $(OUTPUT),$(_MAN_HTML)     19 MAN_HTML  = $(addprefix $(OUTPUT),$(_MAN_HTML))
 20 MAN_3     = $(addprefix $(OUTPUT),$(_MAN_3))       20 MAN_3     = $(addprefix $(OUTPUT),$(_MAN_3))
 21 MAN_7     = $(addprefix $(OUTPUT),$(_MAN_7))       21 MAN_7     = $(addprefix $(OUTPUT),$(_MAN_7))
 22 MAN_X     = $(MAN_3) $(MAN_7)                      22 MAN_X     = $(MAN_3) $(MAN_7)
 23                                                    23 
 24 # Make the path relative to DESTDIR, not prefi     24 # Make the path relative to DESTDIR, not prefix
 25 ifndef DESTDIR                                     25 ifndef DESTDIR
 26   prefix ?=$(HOME)                                 26   prefix ?=$(HOME)
 27 endif                                              27 endif
 28                                                    28 
 29 mandir  ?= $(prefix)/share/man                     29 mandir  ?= $(prefix)/share/man
 30 man3dir  = $(mandir)/man3                          30 man3dir  = $(mandir)/man3
 31 man7dir  = $(mandir)/man7                          31 man7dir  = $(mandir)/man7
 32                                                    32 
 33 docdir  ?= $(prefix)/share/doc/libperf             33 docdir  ?= $(prefix)/share/doc/libperf
 34 htmldir  = $(docdir)/html                          34 htmldir  = $(docdir)/html
 35 exdir    = $(docdir)/examples                      35 exdir    = $(docdir)/examples
 36                                                    36 
 37 ASCIIDOC        = asciidoc                         37 ASCIIDOC        = asciidoc
 38 ASCIIDOC_EXTRA  = --unsafe -f asciidoc.conf        38 ASCIIDOC_EXTRA  = --unsafe -f asciidoc.conf
 39 ASCIIDOC_HTML   = xhtml11                          39 ASCIIDOC_HTML   = xhtml11
 40 MANPAGE_XSL     = manpage-normal.xsl               40 MANPAGE_XSL     = manpage-normal.xsl
 41 XMLTO_EXTRA     =                                  41 XMLTO_EXTRA     =
 42 XMLTO           =xmlto                             42 XMLTO           =xmlto
 43                                                    43 
 44 INSTALL ?= install                                 44 INSTALL ?= install
 45 RM      ?= rm -f                                   45 RM      ?= rm -f
 46                                                    46 
 47 # For asciidoc ...                                 47 # For asciidoc ...
 48 #       -7.1.2, no extra settings are needed.      48 #       -7.1.2, no extra settings are needed.
 49 #       8.0-,   set ASCIIDOC8.                     49 #       8.0-,   set ASCIIDOC8.
 50 #                                                  50 #
 51                                                    51 
 52 # For docbook-xsl ...                              52 # For docbook-xsl ...
 53 #       -1.68.1,        set ASCIIDOC_NO_ROFF?      53 #       -1.68.1,        set ASCIIDOC_NO_ROFF? (based on changelog from 1.73.0)
 54 #       1.69.0,         no extra settings are      54 #       1.69.0,         no extra settings are needed?
 55 #       1.69.1-1.71.0,  set DOCBOOK_SUPPRESS_S     55 #       1.69.1-1.71.0,  set DOCBOOK_SUPPRESS_SP?
 56 #       1.71.1,         no extra settings are      56 #       1.71.1,         no extra settings are needed?
 57 #       1.72.0,         set DOCBOOK_XSL_172.       57 #       1.72.0,         set DOCBOOK_XSL_172.
 58 #       1.73.0-,        set ASCIIDOC_NO_ROFF       58 #       1.73.0-,        set ASCIIDOC_NO_ROFF
 59                                                    59 
 60 # If you had been using DOCBOOK_XSL_172 in an      60 # If you had been using DOCBOOK_XSL_172 in an attempt to get rid
 61 # of 'the ".ft C" problem' in your generated m     61 # of 'the ".ft C" problem' in your generated manpages, and you
 62 # instead ended up with weird characters aroun     62 # instead ended up with weird characters around callouts, try
 63 # using ASCIIDOC_NO_ROFF instead (it works fin     63 # using ASCIIDOC_NO_ROFF instead (it works fine with ASCIIDOC8).
 64                                                    64 
 65 ifdef ASCIIDOC8                                    65 ifdef ASCIIDOC8
 66   ASCIIDOC_EXTRA += -a asciidoc7compatible         66   ASCIIDOC_EXTRA += -a asciidoc7compatible
 67 endif                                              67 endif
 68 ifdef DOCBOOK_XSL_172                              68 ifdef DOCBOOK_XSL_172
 69   ASCIIDOC_EXTRA += -a libperf-asciidoc-no-rof     69   ASCIIDOC_EXTRA += -a libperf-asciidoc-no-roff
 70   MANPAGE_XSL = manpage-1.72.xsl                   70   MANPAGE_XSL = manpage-1.72.xsl
 71 else                                               71 else
 72   ifdef ASCIIDOC_NO_ROFF                           72   ifdef ASCIIDOC_NO_ROFF
 73     # docbook-xsl after 1.72 needs the regular     73     # docbook-xsl after 1.72 needs the regular XSL, but will not
 74     # pass-thru raw roff codes from asciidoc.c     74     # pass-thru raw roff codes from asciidoc.conf, so turn them off.
 75     ASCIIDOC_EXTRA += -a libperf-asciidoc-no-r     75     ASCIIDOC_EXTRA += -a libperf-asciidoc-no-roff
 76   endif                                            76   endif
 77 endif                                              77 endif
 78 ifdef MAN_BOLD_LITERAL                             78 ifdef MAN_BOLD_LITERAL
 79   XMLTO_EXTRA += -m manpage-bold-literal.xsl       79   XMLTO_EXTRA += -m manpage-bold-literal.xsl
 80 endif                                              80 endif
 81 ifdef DOCBOOK_SUPPRESS_SP                          81 ifdef DOCBOOK_SUPPRESS_SP
 82   XMLTO_EXTRA += -m manpage-suppress-sp.xsl        82   XMLTO_EXTRA += -m manpage-suppress-sp.xsl
 83 endif                                              83 endif
 84                                                    84 
 85 DESTDIR ?=                                         85 DESTDIR ?=
 86 DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))'          86 DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))'
 87                                                    87 
 88 export DESTDIR DESTDIR_SQ                          88 export DESTDIR DESTDIR_SQ
 89                                                    89 
 90 # Please note that there is a minor bug in asc     90 # Please note that there is a minor bug in asciidoc.
 91 # The version after 6.0.3 _will_ include the p     91 # The version after 6.0.3 _will_ include the patch found here:
 92 #   http://marc.theaimsgroup.com/?l=libtraceev     92 #   http://marc.theaimsgroup.com/?l=libtraceevent&m=111558757202243&w=2
 93 #                                                  93 #
 94 # Until that version is released you may have      94 # Until that version is released you may have to apply the patch
 95 # yourself - yes, all 6 characters of it!          95 # yourself - yes, all 6 characters of it!
 96                                                    96 
 97 QUIET_SUBDIR0  = +$(MAKE) -C # space to separa     97 QUIET_SUBDIR0  = +$(MAKE) -C # space to separate -C and subdir
 98 QUIET_SUBDIR1  =                                   98 QUIET_SUBDIR1  =
 99                                                    99 
100 ifneq ($(findstring $(MAKEFLAGS),w),w)            100 ifneq ($(findstring $(MAKEFLAGS),w),w)
101   PRINT_DIR = --no-print-directory                101   PRINT_DIR = --no-print-directory
102 else # "make -w"                                  102 else # "make -w"
103   NO_SUBDIR = :                                   103   NO_SUBDIR = :
104 endif                                             104 endif
105                                                   105 
106 ifneq ($(findstring $(MAKEFLAGS),s),s)            106 ifneq ($(findstring $(MAKEFLAGS),s),s)
107   ifneq ($(V),1)                                  107   ifneq ($(V),1)
108     QUIET_ASCIIDOC = @echo '  ASCIIDOC '$@;       108     QUIET_ASCIIDOC = @echo '  ASCIIDOC '$@;
109     QUIET_XMLTO    = @echo '  XMLTO    '$@;       109     QUIET_XMLTO    = @echo '  XMLTO    '$@;
110   endif                                           110   endif
111 endif                                             111 endif
112                                                   112 
113 all: $(MAN_X) $(MAN_HTML)                         113 all: $(MAN_X) $(MAN_HTML)
114                                                   114 
115 $(MAN_HTML) $(MAN_X): asciidoc.conf               115 $(MAN_HTML) $(MAN_X): asciidoc.conf
116                                                   116 
117 install-man: all                                  117 install-man: all
118         $(call QUIET_INSTALL, man) \              118         $(call QUIET_INSTALL, man) \
119                 $(INSTALL) -d -m 755 $(DESTDIR    119                 $(INSTALL) -d -m 755 $(DESTDIR)$(man3dir); \
120                 $(INSTALL) -m 644 $(MAN_3) $(D    120                 $(INSTALL) -m 644 $(MAN_3) $(DESTDIR)$(man3dir); \
121                 $(INSTALL) -d -m 755 $(DESTDIR    121                 $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir); \
122                 $(INSTALL) -m 644 $(MAN_7) $(D    122                 $(INSTALL) -m 644 $(MAN_7) $(DESTDIR)$(man7dir);
123                                                   123 
124 install-html:                                     124 install-html:
125         $(call QUIET_INSTALL, html) \             125         $(call QUIET_INSTALL, html) \
126                 $(INSTALL) -d -m 755 $(DESTDIR    126                 $(INSTALL) -d -m 755 $(DESTDIR)$(htmldir); \
127                 $(INSTALL) -m 644 $(MAN_HTML)     127                 $(INSTALL) -m 644 $(MAN_HTML) $(DESTDIR)$(htmldir); \
128                                                   128 
129 install-examples:                                 129 install-examples:
130         $(call QUIET_INSTALL, examples) \         130         $(call QUIET_INSTALL, examples) \
131                 $(INSTALL) -d -m 755 $(DESTDIR    131                 $(INSTALL) -d -m 755 $(DESTDIR)$(exdir); \
132                 $(INSTALL) -m 644 $(MAN_EX) $(    132                 $(INSTALL) -m 644 $(MAN_EX) $(DESTDIR)$(exdir); \
133                                                   133 
134 CLEAN_FILES =                                     134 CLEAN_FILES =                                   \
135         $(MAN_XML) $(addsuffix +,$(MAN_XML))      135         $(MAN_XML) $(addsuffix +,$(MAN_XML))    \
136         $(MAN_HTML) $(addsuffix +,$(MAN_HTML))    136         $(MAN_HTML) $(addsuffix +,$(MAN_HTML))  \
137         $(MAN_X)                                  137         $(MAN_X)
138                                                   138 
139 clean:                                            139 clean:
140         $(call QUIET_CLEAN, Documentation) $(R    140         $(call QUIET_CLEAN, Documentation) $(RM) $(CLEAN_FILES)
141                                                   141 
142 $(MAN_3): $(OUTPUT)%.3: %.xml                     142 $(MAN_3): $(OUTPUT)%.3: %.xml
143         $(QUIET_XMLTO)$(XMLTO) -o $(OUTPUT). -    143         $(QUIET_XMLTO)$(XMLTO) -o $(OUTPUT). -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
144                                                   144 
145 $(MAN_7): $(OUTPUT)%.7: %.xml                     145 $(MAN_7): $(OUTPUT)%.7: %.xml
146         $(QUIET_XMLTO)$(XMLTO) -o $(OUTPUT). -    146         $(QUIET_XMLTO)$(XMLTO) -o $(OUTPUT). -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
147                                                   147 
148 $(MAN_XML): $(OUTPUT)%.xml: %.txt                 148 $(MAN_XML): $(OUTPUT)%.xml: %.txt
149         $(QUIET_ASCIIDOC)$(ASCIIDOC) -b docboo    149         $(QUIET_ASCIIDOC)$(ASCIIDOC) -b docbook -d manpage \
150                 $(ASCIIDOC_EXTRA) -alibperf_ve    150                 $(ASCIIDOC_EXTRA) -alibperf_version=$(EVENT_PARSE_VERSION) -o $@+ $< && \
151         mv $@+ $@                                 151         mv $@+ $@
152                                                   152 
153 $(MAN_HTML): $(OUTPUT)%.html: %.txt               153 $(MAN_HTML): $(OUTPUT)%.html: %.txt
154         $(QUIET_ASCIIDOC)$(ASCIIDOC) -b $(ASCI    154         $(QUIET_ASCIIDOC)$(ASCIIDOC) -b $(ASCIIDOC_HTML) -d manpage \
155         $(ASCIIDOC_EXTRA) -aperf_version=$(EVE    155         $(ASCIIDOC_EXTRA) -aperf_version=$(EVENT_PARSE_VERSION) -o $@+ $< && \
156         mv $@+ $@                                 156         mv $@+ $@
                                                      

~ [ 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