Skip to content

Commit 54fa065

Browse files
committed
Makefile: set a file dependency to manpages and docsy targets.
Since `make` cannot determine how many files `limactl` generates, set one representative file as a dependency for both `manpages` and `docsy`. Signed-off-by: Norio Nomura <[email protected]>
1 parent f3b5079 commit 54fa065

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,27 @@ endif
340340

341341
# _output/share/man/man1
342342
.PHONY: manpages
343-
manpages: _output/bin/limactl$(exe)
343+
# Set limactl.1 as explicit dependency.
344+
# It's uncertain how many manpages will be generated by `make`,
345+
# because `limactl` generates them without corresponding source code for the manpages.
346+
manpages: _output/share/man/man1/limactl.1
347+
_output/share/man/man1/limactl.1: _output/bin/limactl$(exe)
344348
@mkdir -p _output/share/man/man1
345349
$< generate-doc _output/share/man/man1 \
346350
--output _output --prefix $(PREFIX)
347351

352+
################################################################################
348353
.PHONY: docsy
349-
docsy: _output/bin/limactl$(exe)
354+
# Set limactl.md as explicit dependency.
355+
# It's uncertain how many docsy pages will be generated by `make`,
356+
# because `limactl` generates them without corresponding source code for the docsy pages.
357+
docsy: website/_output/docsy/limactl.md
358+
website/_output/docsy/limactl.md: _output/bin/limactl$(exe)
350359
@mkdir -p website/_output/docsy
351360
$< generate-doc --type docsy website/_output/docsy \
352361
--output _output --prefix $(PREFIX)
353362

363+
################################################################################
354364
.PHONY: diagrams
355365
diagrams: docs/lima-sequence-diagram.png
356366
docs/lima-sequence-diagram.png: docs/images/lima-sequence-diagram.puml

0 commit comments

Comments
 (0)