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.

248 lines
8.0 KiB

  1. # Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
  2. # Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
  3. #
  4. # This file is part of Guix.
  5. #
  6. # Guix is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # Guix is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Guix. If not, see <http://www.gnu.org/licenses/>.
  18. bin_SCRIPTS = \
  19. guix-build \
  20. guix-download \
  21. guix-import \
  22. guix-package
  23. MODULES = \
  24. guix/base32.scm \
  25. guix/utils.scm \
  26. guix/derivations.scm \
  27. guix/download.scm \
  28. guix/gnu-maintenance.scm \
  29. guix/licenses.scm \
  30. guix/build-system.scm \
  31. guix/build-system/gnu.scm \
  32. guix/build-system/trivial.scm \
  33. guix/ftp-client.scm \
  34. guix/store.scm \
  35. guix/ui.scm \
  36. guix/build/download.scm \
  37. guix/build/gnu-build-system.scm \
  38. guix/build/utils.scm \
  39. guix/build/union.scm \
  40. guix/packages.scm \
  41. guix/snix.scm \
  42. guix.scm \
  43. distro.scm \
  44. distro/packages/acl.scm \
  45. distro/packages/attr.scm \
  46. distro/packages/autotools.scm \
  47. distro/packages/base.scm \
  48. distro/packages/bash.scm \
  49. distro/packages/bdw-gc.scm \
  50. distro/packages/bison.scm \
  51. distro/packages/bootstrap.scm \
  52. distro/packages/compression.scm \
  53. distro/packages/cpio.scm \
  54. distro/packages/ddrescue.scm \
  55. distro/packages/ed.scm \
  56. distro/packages/flex.scm \
  57. distro/packages/gawk.scm \
  58. distro/packages/gdbm.scm \
  59. distro/packages/gettext.scm \
  60. distro/packages/gnupg.scm \
  61. distro/packages/gnutls.scm \
  62. distro/packages/gperf.scm \
  63. distro/packages/guile.scm \
  64. distro/packages/help2man.scm \
  65. distro/packages/ld-wrapper.scm \
  66. distro/packages/less.scm \
  67. distro/packages/libffi.scm \
  68. distro/packages/libsigsegv.scm \
  69. distro/packages/libunistring.scm \
  70. distro/packages/linux.scm \
  71. distro/packages/lout.scm \
  72. distro/packages/lsh.scm \
  73. distro/packages/m4.scm \
  74. distro/packages/make-bootstrap.scm \
  75. distro/packages/multiprecision.scm \
  76. distro/packages/nano.scm \
  77. distro/packages/ncurses.scm \
  78. distro/packages/nettle.scm \
  79. distro/packages/openssl.scm \
  80. distro/packages/perl.scm \
  81. distro/packages/pkg-config.scm \
  82. distro/packages/pth.scm \
  83. distro/packages/readline.scm \
  84. distro/packages/recutils.scm \
  85. distro/packages/shishi.scm \
  86. distro/packages/system.scm \
  87. distro/packages/texinfo.scm \
  88. distro/packages/time.scm \
  89. distro/packages/wget.scm \
  90. distro/packages/which.scm \
  91. distro/packages/zile.scm
  92. GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
  93. nobase_dist_guilemodule_DATA = $(MODULES)
  94. patchdir = $(guilemoduledir)/distro/packages/patches
  95. dist_patch_DATA = \
  96. distro/packages/patches/binutils-ld-new-dtags.patch \
  97. distro/packages/patches/cpio-gets-undeclared.patch \
  98. distro/packages/patches/diffutils-gets-undeclared.patch \
  99. distro/packages/patches/flex-bison-tests.patch \
  100. distro/packages/patches/gawk-shell.patch \
  101. distro/packages/patches/gettext-gets-undeclared.patch \
  102. distro/packages/patches/glibc-bootstrap-system.patch \
  103. distro/packages/patches/glibc-no-ld-so-cache.patch \
  104. distro/packages/patches/guile-1.8-cpp-4.5.patch \
  105. distro/packages/patches/guile-default-utf8.patch \
  106. distro/packages/patches/guile-relocatable.patch \
  107. distro/packages/patches/libtool-skip-tests.patch \
  108. distro/packages/patches/lsh-guile-compat.patch \
  109. distro/packages/patches/lsh-no-root-login.patch \
  110. distro/packages/patches/lsh-pam-service-name.patch \
  111. distro/packages/patches/m4-gets-undeclared.patch \
  112. distro/packages/patches/m4-readlink-EINVAL.patch \
  113. distro/packages/patches/m4-s_isdir.patch \
  114. distro/packages/patches/make-impure-dirs.patch \
  115. distro/packages/patches/findutils-absolute-paths.patch \
  116. distro/packages/patches/perl-no-sys-dirs.patch \
  117. distro/packages/patches/readline-link-ncurses.patch \
  118. distro/packages/patches/shishi-gets-undeclared.patch \
  119. distro/packages/patches/tar-gets-undeclared.patch
  120. bootstrapdir = $(guilemoduledir)/distro/packages/bootstrap
  121. bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
  122. bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
  123. dist_bootstrap_x86_64_linux_DATA = \
  124. distro/packages/bootstrap/x86_64-linux/bash \
  125. distro/packages/bootstrap/x86_64-linux/mkdir \
  126. distro/packages/bootstrap/x86_64-linux/tar \
  127. distro/packages/bootstrap/x86_64-linux/xz
  128. dist_bootstrap_i686_linux_DATA = \
  129. distro/packages/bootstrap/i686-linux/bash \
  130. distro/packages/bootstrap/i686-linux/mkdir \
  131. distro/packages/bootstrap/i686-linux/tar \
  132. distro/packages/bootstrap/i686-linux/xz
  133. # Big bootstrap binaries are not included in the tarball. Instead, they
  134. # are downloaded.
  135. nodist_bootstrap_x86_64_linux_DATA = \
  136. distro/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
  137. nodist_bootstrap_i686_linux_DATA = \
  138. distro/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
  139. # Those files must remain executable, so they remain executable once
  140. # imported into the store.
  141. install-data-hook:
  142. chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
  143. DISTCLEANFILES = \
  144. $(nodist_bootstrap_x86_64_linux_DATA) \
  145. $(nodist_bootstrap_i686_linux_DATA)
  146. # Method to download a file from an external source.
  147. DOWNLOAD_FILE = \
  148. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  149. $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
  150. "$(top_srcdir)/build-aux/download.scm"
  151. distro/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
  152. $(MKDIR_P) `dirname "$@"`
  153. $(DOWNLOAD_FILE) "$@" "953fbcc8db6e310626be79b67319cf4141dc23b296447952a99d95425b3a4dc1"
  154. distro/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
  155. $(MKDIR_P) `dirname "$@"`
  156. $(DOWNLOAD_FILE) "$@" "45d1f9bfb9e4531a8f1c5a105f7ab094cd481b8a179ccc63cbabb73ce6b8437f"
  157. nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
  158. TESTS = \
  159. tests/base32.scm \
  160. tests/builders.scm \
  161. tests/derivations.scm \
  162. tests/utils.scm \
  163. tests/build-utils.scm \
  164. tests/packages.scm \
  165. tests/snix.scm \
  166. tests/store.scm \
  167. tests/union.scm \
  168. tests/guix-build.sh \
  169. tests/guix-download.sh \
  170. tests/guix-package.sh
  171. TEST_EXTENSIONS = .scm .sh
  172. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
  173. SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
  174. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  175. SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
  176. AM_SH_LOG_FLAGS = -x -e
  177. EXTRA_DIST = \
  178. HACKING \
  179. ROADMAP \
  180. TODO \
  181. .dir-locals.el \
  182. hydra.scm \
  183. build-aux/download.scm \
  184. srfi/srfi-64.scm \
  185. srfi/srfi-64.upstream.scm \
  186. tests/test.drv \
  187. build-aux/config.rpath \
  188. bootstrap \
  189. release.nix \
  190. $(TESTS)
  191. CLEANFILES = $(GOBJECTS) *.log
  192. .scm.go:
  193. $(MKDIR_P) `dirname "$@"`
  194. $(top_builddir)/pre-inst-env \
  195. $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
  196. -Wformat -Wunbound-variable -Warity-mismatch \
  197. --target="$(host)" \
  198. -o "$@" "$<"
  199. SUFFIXES = .go
  200. # Make sure source files are installed first, so that the mtime of
  201. # installed compiled files is greater than that of installed source
  202. # files. See
  203. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  204. # for details.
  205. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  206. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  207. SUBDIRS = po
  208. info_TEXINFOS = doc/guix.texi
  209. EXTRA_DIST += doc/fdl-1.3.texi
  210. if BUILD_DAEMON
  211. include daemon.am
  212. endif BUILD_DAEMON
  213. ACLOCAL_AMFLAGS = -I m4
  214. AM_DISTCHECK_CONFIGURE_FLAGS = \
  215. --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
  216. --with-nix-prefix="$(NIX_PREFIX)" \
  217. --enable-daemon