libperf: Explicitly specify install-html dependencies
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 15 Sep 2024 01:34:29 +0000 (10:34 +0900)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Sep 2024 22:45:48 +0000 (15:45 -0700)
install_doc of tools/lib/perf/Makefile invokes install-man,
install-html, and install-examples of
tools/lib/perf/Documentation/Makefile at once. This invocation succeeds
when make runs in serial but can fail when make runs in parallel because
while install-man of tools/lib/perf/Documentation/Makefile depends on
all, install-html depends on nothing and can run ahead of all.

Explicitly specify the dependencies of install-html to ensure that
they are resolved before install-html.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Link: https://lore.kernel.org/r/20240915-perf-v1-1-cbfd9cd1d482@daynix.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/lib/perf/Documentation/Makefile

index 972754082a8547830ae1a6eebd576765d38238aa..573ca5b27556777fe67dca354b007d0decd13e3a 100644 (file)
@@ -121,7 +121,7 @@ install-man: all
                $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir); \
                $(INSTALL) -m 644 $(MAN_7) $(DESTDIR)$(man7dir);
 
-install-html:
+install-html: $(MAN_HTML)
        $(call QUIET_INSTALL, html) \
                $(INSTALL) -d -m 755 $(DESTDIR)$(htmldir); \
                $(INSTALL) -m 644 $(MAN_HTML) $(DESTDIR)$(htmldir); \