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.
 
 
 
 
 
 

111 lines
3.1 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/contributing.texi \
  22. doc/emacs.texi \
  23. doc/fdl-1.3.texi \
  24. doc/images/bootstrap-graph.dot \
  25. doc/images/bootstrap-graph.eps \
  26. doc/images/bootstrap-graph.pdf
  27. OS_CONFIG_EXAMPLES_TEXI = \
  28. doc/os-config-bare-bones.texi \
  29. doc/os-config-desktop.texi
  30. # Bundle this file so that makeinfo finds it in out-of-source-tree builds.
  31. BUILT_SOURCES += $(OS_CONFIG_EXAMPLES_TEXI)
  32. EXTRA_DIST += $(OS_CONFIG_EXAMPLES_TEXI)
  33. MAINTAINERCLEANFILES = $(OS_CONFIG_EXAMPLES_TEXI)
  34. doc/os-config-%.texi: gnu/system/examples/%.tmpl
  35. $(MKDIR_P) "`dirname "$@"`"
  36. cp "$<" "$@"
  37. infoimagedir = $(infodir)/images
  38. dist_infoimage_DATA = doc/images/bootstrap-graph.png
  39. # Try hard to obtain an image size and aspect that's reasonable for inclusion
  40. # in an Info or PDF document.
  41. DOT_OPTIONS = \
  42. -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
  43. -Nfontsize=9 -Nheight=.1 -Nwidth=.1
  44. .dot.png:
  45. $(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$@.tmp"
  46. mv "$@.tmp" "$@"
  47. .dot.pdf:
  48. $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp"
  49. mv "$@.tmp" "$@"
  50. .dot.eps:
  51. $(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp"
  52. mv "$@.tmp" "$@"
  53. # We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake)
  54. # Extending"). Using the `-local' rules is imperfect, because they may be
  55. # triggered after the main rule. Oh, well.
  56. pdf-local: $(top_srcdir)/doc/images/bootstrap-graph.pdf
  57. info-local: $(top_srcdir)/doc/images/bootstrap-graph.png
  58. ps-local: $(top_srcdir)/doc/images/bootstrap-graph.eps
  59. # Manual pages.
  60. doc/guix.1: scripts/guix
  61. -LANGUAGE= $(top_builddir)/pre-inst-env \
  62. $(HELP2MAN) --output="$@" guix
  63. doc/guix-daemon.1: guix-daemon
  64. -LANGUAGE= $(top_builddir)/pre-inst-env \
  65. $(HELP2MAN) --output="$@" guix-daemon
  66. define subcommand-manual-target
  67. doc/guix-$(1).1: scripts/guix guix/scripts/$(1).go
  68. -LANGUAGE= $(top_builddir)/pre-inst-env \
  69. $(HELP2MAN) --output="$$@" "guix $(1)"
  70. endef
  71. SUBCOMMANDS := \
  72. archive \
  73. build \
  74. download \
  75. environment \
  76. gc \
  77. hash \
  78. import \
  79. lint \
  80. package \
  81. publish \
  82. pull \
  83. refresh \
  84. system
  85. $(eval $(foreach subcommand,$(SUBCOMMANDS), \
  86. $(call subcommand-manual-target,$(subcommand))))
  87. dist_man1_MANS = \
  88. doc/guix.1 \
  89. doc/guix-daemon.1 \
  90. $(SUBCOMMANDS:%=doc/guix-%.1)