~ruther/guix-local

57cd353d87d6e9e6e882327be70b4d7b5ce863ba — Ludovic Courtès 10 years ago 7887bcb
build: Build man pages after the corresponding code.

* doc.am (doc/guix.1): Remove extraneous $(top_builddir)/.
  (doc/guix-daemon.1): Fix dependency.
  (doc/guix-$(1).1): Remove extraneous $(top_builddir)/.  Depend on the .go
  files instead of the .scm file.  Add dependency on scripts/guix.
1 files changed, 3 insertions(+), 3 deletions(-)

M doc.am
M doc.am => doc.am +3 -3
@@ 69,17 69,17 @@ ps-local: $(top_srcdir)/doc/images/bootstrap-graph.eps

# Manual pages.

doc/guix.1: $(top_builddir)/scripts/guix
doc/guix.1: scripts/guix
	-LANGUAGE= $(top_builddir)/pre-inst-env	\
	  $(HELP2MAN) --output="$@" guix

doc/guix-daemon.1: $(top_builddir)/scripts/guix
doc/guix-daemon.1: guix-daemon
	-LANGUAGE= $(top_builddir)/pre-inst-env	\
	  $(HELP2MAN) --output="$@" guix-daemon

define subcommand-manual-target

doc/guix-$(1).1: $(top_srcdir)/guix/scripts/$(1).scm
doc/guix-$(1).1: scripts/guix guix/scripts/$(1).go
	-LANGUAGE= $(top_builddir)/pre-inst-env		\
	  $(HELP2MAN) --output="$$@" "guix $(1)"