Unset `LD_LIBRARY_PATH' in `build-expression->derivation'.
[guix.git] / Makefile.am
bloba096c9b95d4a1983c210cc2c46ee6cadc3c9a44c
1 # Guix --- Nix package management from Guile.         -*- coding: utf-8 -*-
2 # Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
4 # This file is part of Guix.
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.
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.
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/>.
19 bin_SCRIPTS = guix-build
21 MODULES =                                       \
22   guix/utils.scm                                \
23   guix/derivations.scm                          \
24   guix/build-system.scm                         \
25   guix/build-system/gnu.scm                     \
26   guix/http.scm                                 \
27   guix/store.scm                                \
28   guix/build/gnu-build-system.scm               \
29   guix/build/http.scm                           \
30   guix/build/utils.scm                          \
31   guix/packages.scm                             \
32   guix.scm                                      \
33   distro.scm                                    \
34   distro/base.scm
36 GOBJECTS = $(MODULES:%.scm=%.go)
38 nobase_dist_guilemodule_DATA =                  \
39   $(MODULES)                                    \
40   distro/guile-1.8-cpp-4.5.patch
42 nobase_nodist_guilemodule_DATA = $(GOBJECTS)
44 TESTS =                                         \
45   tests/builders.scm                            \
46   tests/derivations.scm                         \
47   tests/utils.scm                               \
48   tests/build-utils.scm                         \
49   tests/packages.scm
51 TESTS_ENVIRONMENT =                                                     \
52   NIXPKGS="$(NIXPKGS)"                                                  \
53   GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
54   $(GUILE) --no-auto-compile -L "$(top_srcdir)"
56 EXTRA_DIST = build-aux/config.rpath $(TESTS)
58 CLEANFILES = $(GOBJECTS) *.log
60 .scm.go:
61         $(MKDIR_P) `dirname "$@"`
62         NIXPKGS="$(NIXPKGS)"                                                    \
63         GUILE_AUTO_COMPILE=0                                                    \
64         GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH"   \
65         $(GUILD) compile -L "$(top_srcdir)"                                     \
66           -Wformat -Wunbound-variable -Warity-mismatch                          \
67           --target="$(host)"                                                    \
68           -o "$@" "$<"
70 SUFFIXES = .go
72 # Make sure source files are installed first, so that the mtime of
73 # installed compiled files is greater than that of installed source
74 # files.  See
75 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
76 # for details.
77 guix_install_go_files = install-nobase_nodist_guilemoduleDATA
78 $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
80 SUBDIRS = po
82 ACLOCAL_AMFLAGS = -I m4