You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

105 lines
3.0 KiB

  1. # GNU Guix --- Functional package management for GNU
  2. # Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
  3. # Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. #
  5. # This file is part of GNU Guix.
  6. #
  7. # GNU Guix is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # GNU Guix is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. info_TEXINFOS = doc/guix.texi
  20. EXTRA_DIST += \
  21. doc/emacs.texi \
  22. doc/fdl-1.3.texi \
  23. doc/images/bootstrap-graph.dot \
  24. doc/images/bootstrap-graph.eps \
  25. doc/images/bootstrap-graph.pdf
  26. OS_CONFIG_EXAMPLES_TEXI = \
  27. doc/os-config-bare-bones.texi \
  28. doc/os-config-desktop.texi
  29. # Bundle this file so that makeinfo finds it in out-of-source-tree builds.
  30. BUILT_SOURCES += $(OS_CONFIG_EXAMPLES_TEXI)
  31. EXTRA_DIST += $(OS_CONFIG_EXAMPLES_TEXI)
  32. MAINTAINERCLEANFILES = $(OS_CONFIG_EXAMPLES_TEXI)
  33. doc/os-config-%.texi: gnu/system/examples/%.tmpl
  34. $(MKDIR_P) "`dirname "$@"`"
  35. cp "$<" "$@"
  36. infoimagedir = $(infodir)/images
  37. dist_infoimage_DATA = doc/images/bootstrap-graph.png
  38. # Try hard to obtain an image size and aspect that's reasonable for inclusion
  39. # in an Info or PDF document.
  40. DOT_OPTIONS = \
  41. -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
  42. -Nfontsize=9 -Nheight=.1 -Nwidth=.1
  43. .dot.png:
  44. $(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$@.tmp"
  45. mv "$@.tmp" "$@"
  46. .dot.pdf:
  47. $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp"
  48. mv "$@.tmp" "$@"
  49. .dot.eps:
  50. $(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
  51. mv "$@.tmp" "$@"
  52. # We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake)
  53. # Extending"). Using the `-local' rules is imperfect, because they may be
  54. # triggered after the main rule. Oh, well.
  55. pdf-local: $(top_srcdir)/doc/images/bootstrap-graph.pdf
  56. info-local: $(top_srcdir)/doc/images/bootstrap-graph.png
  57. ps-local: $(top_srcdir)/doc/images/bootstrap-graph.eps
  58. # Manual pages.
  59. doc/guix.1: $(top_builddir)/scripts/guix
  60. -LANGUAGE= $(top_builddir)/pre-inst-env \
  61. $(HELP2MAN) --output="$@" guix
  62. define subcommand-manual-target
  63. doc/guix-$(1).1: $(top_srcdir)/guix/scripts/$(1).scm
  64. -LANGUAGE= $(top_builddir)/pre-inst-env \
  65. $(HELP2MAN) --output="$$@" "guix $(1)"
  66. endef
  67. SUBCOMMANDS := \
  68. archive \
  69. build \
  70. download \
  71. environment \
  72. gc \
  73. hash \
  74. import \
  75. lint \
  76. package \
  77. publish \
  78. pull \
  79. refresh \
  80. system
  81. $(eval $(foreach subcommand,$(SUBCOMMANDS), \
  82. $(call subcommand-manual-target,$(subcommand))))
  83. dist_man1_MANS = \
  84. doc/guix.1 \
  85. $(SUBCOMMANDS:%=doc/guix-%.1)