aboutsummaryrefslogtreecommitdiff
path: root/doc.am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-07-19 22:01:20 +0200
committerLudovic Courtès <ludo@gnu.org>2015-07-19 22:04:46 +0200
commit0af3f404e9f5bd12099c6f63fe5e20e9ed5b029e (patch)
tree978f06c59178ad76a83cac2535a71ce68724abb9 /doc.am
parentf262f9f52dde48efcfc913a6f6dfd898bf469408 (diff)
downloadgnu-guix-0af3f404e9f5bd12099c6f63fe5e20e9ed5b029e.tar
gnu-guix-0af3f404e9f5bd12099c6f63fe5e20e9ed5b029e.tar.gz
build: Ensure man pages are not rebuilt by users.
* doc.am (doc/guix.1): Remove dependency on 'scripts/guix' since every user would end up rebuilding 'guix.1'. Add dependency on guix/scripts/*.scm. (doc/guix-daemon.1): For the same reason, depend on 'guix-daemon.cc' instead of 'guix-daemon'. (doc/guix-$(1).1): Similarly, remove dependency on 'scripts/guix' and depend on 'guix/scripts/$(1).scm' instead of the .go file.
Diffstat (limited to 'doc.am')
-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)"