Commit | Line | Data |
---|---|---|
af51c820 LC |
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 | ||
14a1c319 LC |
19 | bin_SCRIPTS = guix-build |
20 | ||
af51c820 | 21 | MODULES = \ |
73fbb904 | 22 | guix/utils.scm \ |
af51c820 | 23 | guix/derivations.scm \ |
208f7cd1 LC |
24 | guix/build-system.scm \ |
25 | guix/build-system/gnu.scm \ | |
af51c820 LC |
26 | guix/http.scm \ |
27 | guix/store.scm \ | |
af51c820 LC |
28 | guix/build/gnu-build-system.scm \ |
29 | guix/build/http.scm \ | |
1273d44a | 30 | guix/build/utils.scm \ |
e3ce5d70 LC |
31 | guix/packages.scm \ |
32 | guix.scm \ | |
6b1891b0 | 33 | distro.scm \ |
e3ce5d70 | 34 | distro/base.scm |
af51c820 LC |
35 | |
36 | GOBJECTS = $(MODULES:%.scm=%.go) | |
37 | ||
38 | nobase_dist_guilemodule_DATA = $(MODULES) | |
39 | nobase_nodist_guilemodule_DATA = $(GOBJECTS) | |
40 | ||
41 | TESTS = \ | |
42 | tests/builders.scm \ | |
43 | tests/derivations.scm \ | |
e3ce5d70 LC |
44 | tests/utils.scm \ |
45 | tests/packages.scm | |
af51c820 LC |
46 | |
47 | TESTS_ENVIRONMENT = \ | |
48 | NIXPKGS="$(NIXPKGS)" \ | |
49 | GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \ | |
50 | $(GUILE) -L "$(top_srcdir)" | |
51 | ||
f68b0893 | 52 | EXTRA_DIST = build-aux/config.rpath $(TESTS) |
af51c820 LC |
53 | CLEANFILES = $(GOBJECTS) *.log |
54 | ||
55 | .scm.go: | |
56 | $(MKDIR_P) `dirname "$@"` | |
04a0b857 | 57 | NIXPKGS="$(NIXPKGS)" \ |
af51c820 LC |
58 | GUILE_AUTO_COMPILE=0 \ |
59 | GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \ | |
48e8333d LC |
60 | $(GUILD) compile -L "$(top_srcdir)" \ |
61 | -Wformat -Wunbound-variable -Warity-mismatch \ | |
73d96596 | 62 | --target="$(host)" \ |
af51c820 LC |
63 | -o "$@" "$<" |
64 | ||
65 | SUFFIXES = .go | |
66 | ||
67 | # Make sure source files are installed first, so that the mtime of | |
68 | # installed compiled files is greater than that of installed source | |
69 | # files. See | |
70 | # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html> | |
71 | # for details. | |
72 | guix_install_go_files = install-nobase_nodist_guilemoduleDATA | |
73 | $(guix_install_go_files): install-nobase_dist_guilemoduleDATA | |
f68b0893 LC |
74 | |
75 | SUBDIRS = po | |
76 | ||
77 | ACLOCAL_AMFLAGS = -I m4 |