diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2016-01-24 19:00:27 +0100 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2016-01-28 16:31:38 +0100 |
commit | 8dddedf778f85c3356466ed028ff3c2c6fedb44f (patch) | |
tree | 89f70ebb69ead6362172d3c858a8df15c8d93d1f | |
parent | 71ed439b6804e82877f63093ee101a2f1e12c77a (diff) | |
download | guix-8dddedf778f85c3356466ed028ff3c2c6fedb44f.tar.gz guix-8dddedf778f85c3356466ed028ff3c2c6fedb44f.zip |
build: Add 'HELP2MAN' silent rule.
* Makefile.am (AM_V_HELP2MAN, AM_V_HELP2MAN_, AM_V_HELP2MAN_0): New
variables.
* doc.am (subcommand-manual-target, doc/guix.1, doc/guix-daemon.1): Use
$(AM_V_HELP2MAN).
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | doc.am | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 2fa126959a..bc015e23e3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -488,3 +488,7 @@ AM_V_DOT_0 = @echo " DOT " $@; AM_V_EMACS = $(AM_V_EMACS_$(V)) AM_V_EMACS_ = $(AM_V_EMACS_$(AM_DEFAULT_VERBOSITY)) AM_V_EMACS_0 = @echo " EMACS " $@; + +AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V)) +AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY)) +AM_V_HELP2MAN_0 = @echo " HELP2MAN" $@; @@ -95,19 +95,19 @@ dvi-local: ps-local # Manual pages. doc/guix.1: $(SUBCOMMANDS:%=guix/scripts/%.scm) - -LANGUAGE= $(top_builddir)/pre-inst-env \ + -$(AM_V_HELP2MAN)LANGUAGE= $(top_builddir)/pre-inst-env \ $(HELP2MAN) --output="$@" guix # 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 \ + -$(AM_V_HELP2MAN)LANGUAGE= $(top_builddir)/pre-inst-env \ $(HELP2MAN) --output="$@" guix-daemon define subcommand-manual-target doc/guix-$(1).1: guix/scripts/$(1).scm - -LANGUAGE= $(top_builddir)/pre-inst-env \ + -$$(AM_V_HELP2MAN)LANGUAGE= $(top_builddir)/pre-inst-env \ $(HELP2MAN) --output="$$@" "guix $(1)" endef |