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.
 
 
 
 
 
 

100 lines
2.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 = guix-build
  19. MODULES = \
  20. guix/utils.scm \
  21. guix/derivations.scm \
  22. guix/build-system.scm \
  23. guix/build-system/gnu.scm \
  24. guix/http.scm \
  25. guix/store.scm \
  26. guix/build/gnu-build-system.scm \
  27. guix/build/http.scm \
  28. guix/build/utils.scm \
  29. guix/packages.scm \
  30. guix.scm \
  31. distro.scm \
  32. distro/base.scm
  33. GOBJECTS = $(MODULES:%.scm=%.go)
  34. nobase_dist_guilemodule_DATA = \
  35. $(MODULES) \
  36. distro/guile-1.8-cpp-4.5.patch \
  37. distro/m4-readlink-EINVAL.patch \
  38. distro/m4-s_isdir.patch \
  39. distro/readline-link-ncurses.patch
  40. nobase_nodist_guilemodule_DATA = $(GOBJECTS)
  41. TESTS = \
  42. tests/builders.scm \
  43. tests/derivations.scm \
  44. tests/utils.scm \
  45. tests/build-utils.scm \
  46. tests/packages.scm
  47. TESTS_ENVIRONMENT = \
  48. NIX_HASH="$(NIX_HASH)"; \
  49. NIX_INSTANTIATE="$(NIX_INSTANTIATE)"; \
  50. NIXPKGS="$(NIXPKGS)"; \
  51. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH"; \
  52. export NIX_HASH NIX_INSTANTIATE NIXPKGS GUILE_LOAD_COMPILED_PATH;
  53. LOG_COMPILER = \
  54. $(GUILE) --no-auto-compile -L "$(top_srcdir)"
  55. EXTRA_DIST = \
  56. srfi/srfi-64.scm \
  57. srfi/srfi-64.upstream.scm \
  58. tests/test.drv \
  59. build-aux/config.rpath \
  60. release.nix \
  61. $(TESTS)
  62. CLEANFILES = $(GOBJECTS) *.log
  63. .scm.go:
  64. $(MKDIR_P) `dirname "$@"`
  65. NIX_INSTANTIATE="$(NIX_INSTANTIATE)" \
  66. NIXPKGS="$(NIXPKGS)" \
  67. GUILE_AUTO_COMPILE=0 \
  68. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  69. $(GUILD) compile -L "$(top_srcdir)" \
  70. -Wformat -Wunbound-variable -Warity-mismatch \
  71. --target="$(host)" \
  72. -o "$@" "$<"
  73. SUFFIXES = .go
  74. # Make sure source files are installed first, so that the mtime of
  75. # installed compiled files is greater than that of installed source
  76. # files. See
  77. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  78. # for details.
  79. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  80. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  81. SUBDIRS = po
  82. ACLOCAL_AMFLAGS = -I m4
  83. AM_DISTCHECK_CONFIGURE_FLAGS = \
  84. --with-nixpkgs=$(NIXPKGS) --with-nix-prefix="$(NIX_PREFIX)"