diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-01 22:37:54 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-01 22:37:54 +0200 |
commit | 52eca736f6b8fedb7d0cc4dd281059f672d88734 (patch) | |
tree | 7b36ffbe55bdc6f69ed9bb2282b26819ab834f3b /doc.am | |
parent | 93e7199b3551729e892255190fdd290ba9feccca (diff) | |
download | patches-52eca736f6b8fedb7d0cc4dd281059f672d88734.tar patches-52eca736f6b8fedb7d0cc4dd281059f672d88734.tar.gz |
build: Build and install manual pages.
* configure.ac: Use 'AM_MISSING_PROG' for 'help2man'.
* doc.am (subcommand-manual-target, SUBCOMMANDS, dist_man1_MANS): New
variables.
(doc/guix-$(1).1, doc/guix.1): New targets.
Diffstat (limited to 'doc.am')
-rw-r--r-- | doc.am | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -65,3 +65,40 @@ DOT_OPTIONS = \ pdf-local: $(top_srcdir)/doc/images/bootstrap-graph.pdf info-local: $(top_srcdir)/doc/images/bootstrap-graph.png ps-local: $(top_srcdir)/doc/images/bootstrap-graph.eps + + +# Manual pages. + +doc/guix.1: $(top_builddir)/scripts/guix + -LANGUAGE= $(top_builddir)/pre-inst-env \ + $(HELP2MAN) --output="$@" guix + +define subcommand-manual-target + +doc/guix-$(1).1: $(top_srcdir)/guix/scripts/$(1).scm + -LANGUAGE= $(top_builddir)/pre-inst-env \ + $(HELP2MAN) --output="$$@" "guix $(1)" + +endef + +SUBCOMMANDS := \ + archive \ + build \ + download \ + environment \ + gc \ + hash \ + import \ + lint \ + package \ + publish \ + pull \ + refresh \ + system + +$(eval $(foreach subcommand,$(SUBCOMMANDS), \ + $(call subcommand-manual-target,$(subcommand)))) + +dist_man1_MANS = \ + doc/guix.1 \ + $(SUBCOMMANDS:%=doc/guix-%.1) |