commit:     d2daf0e83c4cb3e7e2d4ee9c0a73683e8eb61cfe
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 25 16:39:45 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 25 16:48:04 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d2daf0e8

Makefile: restrict manpage re-building to their respective C-files

Depending on a change in the built q executable for every manpage is not
necessary in most cases, so try to limit the scope.

This should also avoid re-generation of the manpages in dist tarballs,
and thus eliminate the need for python and pyyaml.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 Makefile.am | 3 ++-
 Makefile.in | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c126db7..b09a758 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -103,7 +103,8 @@ dist_man_MANS += man/qmanifest.1
 APPLETS += qmanifest
 endif
 
-man/%.1: q
+man/%.1: %.c applets.h
+       $(MAKE) q
        man/mkman.py $@
 
 install-exec-hook:

diff --git a/Makefile.in b/Makefile.in
index cff4317..01c6957 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -3168,7 +3168,8 @@ uninstall-man: uninstall-man1
 .PRECIOUS: Makefile
 
 
-man/%.1: q
+man/%.1: %.c applets.h
+       $(MAKE) q
        man/mkman.py $@
 
 install-exec-hook:

Reply via email to