summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc.am b/doc.am
index 3de08e2177..02b80ec7b5 100644
--- a/doc.am
+++ b/doc.am
@@ -80,17 +80,19 @@ dvi-local: ps-local
 
 # Manual pages.
 
-doc/guix.1: scripts/guix
+doc/guix.1: $(SUBCOMMANDS:%=guix/scripts/%.scm)
 	-LANGUAGE= $(top_builddir)/pre-inst-env	\
 	  $(HELP2MAN) --output="$@" guix
 
-doc/guix-daemon.1: guix-daemon
+# Note: Do not depend on 'guix-daemon' since that would trigger a rebuild even
+# for people building from a tarball.
+doc/guix-daemon.1: nix/nix-daemon/guix-daemon.cc
 	-LANGUAGE= $(top_builddir)/pre-inst-env	\
 	  $(HELP2MAN) --output="$@" guix-daemon
 
 define subcommand-manual-target
 
-doc/guix-$(1).1: scripts/guix guix/scripts/$(1).go
+doc/guix-$(1).1: guix/scripts/$(1).scm
 	-LANGUAGE= $(top_builddir)/pre-inst-env		\
 	  $(HELP2MAN) --output="$$@" "guix $(1)"