Skip to content

Commit

Permalink
build: Ensure man pages are not rebuilt by users.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
civodul committed Jul 19, 2015
1 parent f262f9f commit 0af3f40
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc.am
Original file line number Diff line number Diff line change
@@ -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)"

0 comments on commit 0af3f40

Please sign in to comment.