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.
 
 
 
 
 
 

176 lines
5.7 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-package
  22. MODULES = \
  23. guix/utils.scm \
  24. guix/derivations.scm \
  25. guix/build-system.scm \
  26. guix/build-system/gnu.scm \
  27. guix/build-system/trivial.scm \
  28. guix/ftp.scm \
  29. guix/ftp-client.scm \
  30. guix/http.scm \
  31. guix/store.scm \
  32. guix/ui.scm \
  33. guix/build/gnu-build-system.scm \
  34. guix/build/ftp.scm \
  35. guix/build/http.scm \
  36. guix/build/utils.scm \
  37. guix/build/union.scm \
  38. guix/packages.scm \
  39. guix.scm \
  40. distro.scm \
  41. distro/packages/base.scm \
  42. distro/packages/databases.scm \
  43. distro/packages/guile.scm \
  44. distro/packages/ld-wrapper.scm \
  45. distro/packages/typesetting.scm
  46. GOBJECTS = $(MODULES:%.scm=%.go)
  47. nobase_dist_guilemodule_DATA = $(MODULES)
  48. patchdir = $(pkgdatadir)/patches
  49. dist_patch_DATA = \
  50. distro/packages/patches/binutils-ld-new-dtags.patch \
  51. distro/packages/patches/diffutils-gets-undeclared.patch \
  52. distro/packages/patches/guile-1.8-cpp-4.5.patch \
  53. distro/packages/patches/guile-default-utf8.patch \
  54. distro/packages/patches/guile-relocatable.patch \
  55. distro/packages/patches/libtool-skip-tests.patch \
  56. distro/packages/patches/m4-gets-undeclared.patch \
  57. distro/packages/patches/m4-readlink-EINVAL.patch \
  58. distro/packages/patches/m4-s_isdir.patch \
  59. distro/packages/patches/make-impure-dirs.patch \
  60. distro/packages/patches/findutils-absolute-paths.patch \
  61. distro/packages/patches/perl-no-sys-dirs.patch \
  62. distro/packages/patches/readline-link-ncurses.patch \
  63. distro/packages/patches/tar-gets-undeclared.patch
  64. bootstrapdir = $(pkgdatadir)/bootstrap
  65. bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
  66. bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
  67. dist_bootstrap_x86_64_linux_DATA = \
  68. distro/packages/bootstrap/x86_64-linux/bash \
  69. distro/packages/bootstrap/x86_64-linux/mkdir \
  70. distro/packages/bootstrap/x86_64-linux/tar \
  71. distro/packages/bootstrap/x86_64-linux/xz
  72. dist_bootstrap_i686_linux_DATA = \
  73. distro/packages/bootstrap/i686-linux/bash \
  74. distro/packages/bootstrap/i686-linux/mkdir \
  75. distro/packages/bootstrap/i686-linux/tar \
  76. distro/packages/bootstrap/i686-linux/xz
  77. # Big bootstrap binaries are not included in the tarball. Instead, they
  78. # are downloaded.
  79. nodist_bootstrap_x86_64_linux_DATA = \
  80. distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz
  81. nodist_bootstrap_i686_linux_DATA = \
  82. distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz
  83. # Those files must remain executable, so they remain executable once
  84. # imported into the store.
  85. install-data-hook:
  86. chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
  87. DISTCLEANFILES = \
  88. $(nodist_bootstrap_x86_64_linux_DATA) \
  89. $(nodist_bootstrap_i686_linux_DATA)
  90. # Method to download a file from an external source.
  91. DOWNLOAD_FILE = \
  92. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  93. $(GUILE) --no-auto-compile -L "$(top_srcdir)" \
  94. "$(top_srcdir)/build-aux/download.scm"
  95. distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz: guix/utils.go
  96. $(MKDIR_P) `dirname "$@"`
  97. $(DOWNLOAD_FILE) "$@" "0467a82cbe4136f60a79eb4176011bf88cf28ea19c9ad9defa365811ff8e11cf"
  98. distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz: guix/utils.go
  99. $(MKDIR_P) `dirname "$@"`
  100. $(DOWNLOAD_FILE) "$@" "93b537766dfab3ad287143523751e3ec02dd32d3ccaf88ad2d31c63158f342ee"
  101. nobase_nodist_guilemodule_DATA = $(GOBJECTS)
  102. TESTS = \
  103. tests/builders.scm \
  104. tests/derivations.scm \
  105. tests/utils.scm \
  106. tests/build-utils.scm \
  107. tests/packages.scm \
  108. tests/union.scm \
  109. tests/guix-build.sh \
  110. tests/guix-package.sh
  111. TEST_EXTENSIONS = .scm .sh
  112. SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE)
  113. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  114. SH_LOG_COMPILER = $(top_builddir)/pre-inst-env $(SHELL)
  115. AM_SH_LOG_FLAGS = -x -e
  116. EXTRA_DIST = \
  117. HACKING \
  118. .dir-locals.el \
  119. build-aux/download.scm \
  120. srfi/srfi-64.scm \
  121. srfi/srfi-64.upstream.scm \
  122. tests/test.drv \
  123. build-aux/config.rpath \
  124. release.nix \
  125. $(TESTS)
  126. CLEANFILES = $(GOBJECTS) *.log
  127. .scm.go:
  128. $(MKDIR_P) `dirname "$@"`
  129. DISTRO_INSTALLED_PATCH_DIRECTORY="$(patchdir)" \
  130. DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY="$(bootstrapdir)" \
  131. $(top_builddir)/pre-inst-env \
  132. $(GUILD) compile -L "$(top_srcdir)" \
  133. -Wformat -Wunbound-variable -Warity-mismatch \
  134. --target="$(host)" \
  135. -o "$@" "$<"
  136. SUFFIXES = .go
  137. # Make sure source files are installed first, so that the mtime of
  138. # installed compiled files is greater than that of installed source
  139. # files. See
  140. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  141. # for details.
  142. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  143. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  144. SUBDIRS = po
  145. info_TEXINFOS = doc/guix.texi
  146. EXTRA_DIST += doc/fdl-1.3.texi
  147. ACLOCAL_AMFLAGS = -I m4
  148. AM_DISTCHECK_CONFIGURE_FLAGS = \
  149. --with-nix-prefix="$(NIX_PREFIX)"