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.
 
 
 
 
 
 

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