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.
 
 
 
 
 
 

65 lines
2.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. MODULES = \
  19. guix/derivations.scm \
  20. guix/gnu-build-system.scm \
  21. guix/http.scm \
  22. guix/store.scm \
  23. guix/utils.scm \
  24. guix/build/gnu-build-system.scm \
  25. guix/build/http.scm \
  26. guix/build/utils.scm \
  27. guix.scm
  28. GOBJECTS = $(MODULES:%.scm=%.go)
  29. nobase_dist_guilemodule_DATA = $(MODULES)
  30. nobase_nodist_guilemodule_DATA = $(GOBJECTS)
  31. TESTS = \
  32. tests/builders.scm \
  33. tests/derivations.scm \
  34. tests/utils.scm
  35. TESTS_ENVIRONMENT = \
  36. NIXPKGS="$(NIXPKGS)" \
  37. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  38. $(GUILE) -L "$(top_srcdir)"
  39. CLEANFILES = $(GOBJECTS) *.log
  40. .scm.go:
  41. $(MKDIR_P) `dirname "$@"`
  42. GUILE_AUTO_COMPILE=0 \
  43. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  44. $(GUILD) compile -L "$(top_srcdir)" \
  45. -Wformat -Wunbound-variable -Warity-mismatch \
  46. --target="$(host)" \
  47. -o "$@" "$<"
  48. SUFFIXES = .go
  49. # Make sure source files are installed first, so that the mtime of
  50. # installed compiled files is greater than that of installed source
  51. # files. See
  52. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  53. # for details.
  54. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  55. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA