Skip to content

Commit 7cd053d

Browse files
olsajiriacmel
authored andcommitted
perf tools: Unify a bit the build directory output
Removing the extra 'SUBDIR' line from clean and doc build output. Because it's annoying.. ;-) Before: $ make clean ... SUBDIR Documentation CLEAN Documentation After: $ make clean ... CLEAN Documentation Before: $ make doc BUILD: Doing 'make -j8' parallel build SUBDIR Documentation ASCIIDOC perf-stat.html ... After: $ make doc BUILD: Doing 'make -j8' parallel build ASCIIDOC perf-stat.html ... Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20200318204522.1200981-1-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 29f36c1 commit 7cd053d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎tools/perf/Makefile.perf‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ TRACE_EVENT_DIR = $(srctree)/tools/lib/traceevent/
231231
BPF_DIR = $(srctree)/tools/lib/bpf/
232232
SUBCMD_DIR = $(srctree)/tools/lib/subcmd/
233233
LIBPERF_DIR = $(srctree)/tools/lib/perf/
234+
DOC_DIR = $(srctree)/tools/perf/Documentation/
234235

235236
# Set FEATURE_TESTS to 'all' so all possible feature checkers are executed.
236237
# Without this setting the output feature dump file misses some features, for
@@ -792,7 +793,6 @@ $(LIBSUBCMD): FORCE
792793
$(Q)$(MAKE) -C $(SUBCMD_DIR) O=$(OUTPUT) $(OUTPUT)libsubcmd.a
793794

794795
$(LIBSUBCMD)-clean:
795-
$(call QUIET_CLEAN, libsubcmd)
796796
$(Q)$(MAKE) -C $(SUBCMD_DIR) O=$(OUTPUT) clean
797797

798798
help:
@@ -832,7 +832,7 @@ INSTALL_DOC_TARGETS += quick-install-doc quick-install-man quick-install-html
832832

833833
# 'make doc' should call 'make -C Documentation all'
834834
$(DOC_TARGETS):
835-
$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) $(@:doc=all)
835+
$(Q)$(MAKE) -C $(DOC_DIR) O=$(OUTPUT) $(@:doc=all)
836836

837837
TAG_FOLDERS= . ../lib ../include
838838
TAG_FILES= ../../include/uapi/linux/perf_event.h
@@ -959,7 +959,7 @@ install-python_ext:
959959

960960
# 'make install-doc' should call 'make -C Documentation install'
961961
$(INSTALL_DOC_TARGETS):
962-
$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) $(@:-doc=)
962+
$(Q)$(MAKE) -C $(DOC_DIR) O=$(OUTPUT) $(@:-doc=)
963963

964964
### Cleaning rules
965965

@@ -1008,7 +1008,8 @@ clean:: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clea
10081008
$(OUTPUT)$(rename_flags_array) \
10091009
$(OUTPUT)$(arch_errno_name_array) \
10101010
$(OUTPUT)$(sync_file_range_arrays)
1011-
$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
1011+
$(call QUIET_CLEAN, Documentation) \
1012+
$(MAKE) -C $(DOC_DIR) O=$(OUTPUT) clean >/dev/null
10121013

10131014
#
10141015
# To provide FEATURE-DUMP into $(FEATURE_DUMP_COPY)

0 commit comments

Comments
 (0)