distro: Change the module name space to (gnu ...).
[jackhill/guix/guix.git] / Makefile.am
CommitLineData
233e7676
LC
1# GNU Guix --- Functional package management for GNU
2# Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
f2499672 3# Copyright © 2013 Andreas Enge <andreas@enge.fr>
af51c820 4#
233e7676 5# This file is part of GNU Guix.
af51c820 6#
233e7676 7# GNU Guix is free software; you can redistribute it and/or modify it
af51c820
LC
8# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or (at
10# your option) any later version.
11#
233e7676 12# GNU Guix is distributed in the hope that it will be useful, but
af51c820
LC
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
233e7676 18# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
af51c820 19
c52a5bf0
LC
20bin_SCRIPTS = \
21 guix-build \
0afdc485 22 guix-download \
10226c05 23 guix-import \
fe8ff028
LC
24 guix-package \
25 guix-gc
14a1c319 26
af51c820 27MODULES = \
ddc29a78 28 guix/base32.scm \
73fbb904 29 guix/utils.scm \
af51c820 30 guix/derivations.scm \
62cab99c 31 guix/download.scm \
22189ed1 32 guix/gnu-maintenance.scm \
838d78e3 33 guix/licenses.scm \
208f7cd1
LC
34 guix/build-system.scm \
35 guix/build-system/gnu.scm \
be13fbfa 36 guix/build-system/trivial.scm \
457dd86d 37 guix/ftp-client.scm \
af51c820 38 guix/store.scm \
073c34d7 39 guix/ui.scm \
62cab99c 40 guix/build/download.scm \
af51c820 41 guix/build/gnu-build-system.scm \
1273d44a 42 guix/build/utils.scm \
c8c88afa 43 guix/build/union.scm \
e3ce5d70 44 guix/packages.scm \
10226c05 45 guix/snix.scm \
e3ce5d70 46 guix.scm \
6b1891b0 47 distro.scm \
1ffa7090
LC
48 gnu/packages/acl.scm \
49 gnu/packages/algebra.scm \
50 gnu/packages/aspell.scm \
51 gnu/packages/attr.scm \
52 gnu/packages/autotools.scm \
53 gnu/packages/base.scm \
54 gnu/packages/bash.scm \
55 gnu/packages/bdb.scm \
56 gnu/packages/bdw-gc.scm \
57 gnu/packages/bison.scm \
58 gnu/packages/bootstrap.scm \
59 gnu/packages/check.scm \
60 gnu/packages/compression.scm \
61 gnu/packages/cpio.scm \
62 gnu/packages/cyrus-sasl.scm \
63 gnu/packages/dejagnu.scm \
64 gnu/packages/ddrescue.scm \
65 gnu/packages/ed.scm \
66 gnu/packages/emacs.scm \
67 gnu/packages/file.scm \
68 gnu/packages/flex.scm \
69 gnu/packages/gawk.scm \
70 gnu/packages/gdb.scm \
71 gnu/packages/gdbm.scm \
72 gnu/packages/gettext.scm \
73 gnu/packages/global.scm \
74 gnu/packages/gnupg.scm \
75 gnu/packages/gnutls.scm \
76 gnu/packages/gperf.scm \
77 gnu/packages/gsasl.scm \
78 gnu/packages/guile.scm \
79 gnu/packages/help2man.scm \
80 gnu/packages/icu4c.scm \
81 gnu/packages/idutils.scm \
82 gnu/packages/indent.scm \
83 gnu/packages/ld-wrapper.scm \
84 gnu/packages/less.scm \
85 gnu/packages/libffi.scm \
86 gnu/packages/libidn.scm \
87 gnu/packages/libjpeg.scm \
88 gnu/packages/libsigsegv.scm \
89 gnu/packages/libtiff.scm \
90 gnu/packages/libunistring.scm \
91 gnu/packages/libusb.scm \
92 gnu/packages/linux.scm \
93 gnu/packages/lout.scm \
94 gnu/packages/lsh.scm \
95 gnu/packages/m4.scm \
96 gnu/packages/mailutils.scm \
97 gnu/packages/make-bootstrap.scm \
98 gnu/packages/mit-krb5.scm \
99 gnu/packages/multiprecision.scm \
100 gnu/packages/mysql.scm \
101 gnu/packages/nano.scm \
102 gnu/packages/ncurses.scm \
103 gnu/packages/nettle.scm \
104 gnu/packages/openssl.scm \
105 gnu/packages/perl.scm \
106 gnu/packages/pkg-config.scm \
107 gnu/packages/pth.scm \
108 gnu/packages/python.scm \
109 gnu/packages/readline.scm \
110 gnu/packages/recutils.scm \
111 gnu/packages/rsync.scm \
112 gnu/packages/scheme.scm \
113 gnu/packages/shishi.scm \
114 gnu/packages/system.scm \
115 gnu/packages/tcl.scm \
116 gnu/packages/texinfo.scm \
117 gnu/packages/time.scm \
118 gnu/packages/wget.scm \
119 gnu/packages/which.scm \
120 gnu/packages/xml.scm \
121 gnu/packages/zile.scm
af51c820 122
c44899a2 123
00e219d1 124GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
af51c820 125
800cdeef
LC
126nobase_dist_guilemodule_DATA = $(MODULES)
127
1ffa7090 128patchdir = $(guilemoduledir)/gnu/packages/patches
bfb3c3d0 129dist_patch_DATA = \
1ffa7090
LC
130 gnu/packages/patches/bigloo-gc-shebangs.patch \
131 gnu/packages/patches/binutils-ld-new-dtags.patch \
132 gnu/packages/patches/cpio-gets-undeclared.patch \
133 gnu/packages/patches/diffutils-gets-undeclared.patch \
134 gnu/packages/patches/emacs-configure-sh.patch \
135 gnu/packages/patches/flex-bison-tests.patch \
136 gnu/packages/patches/gawk-shell.patch \
137 gnu/packages/patches/gettext-gets-undeclared.patch \
138 gnu/packages/patches/glibc-bootstrap-system.patch \
139 gnu/packages/patches/glibc-no-ld-so-cache.patch \
140 gnu/packages/patches/guile-1.8-cpp-4.5.patch \
141 gnu/packages/patches/guile-default-utf8.patch \
142 gnu/packages/patches/guile-relocatable.patch \
143 gnu/packages/patches/libtool-skip-tests.patch \
144 gnu/packages/patches/lsh-guile-compat.patch \
145 gnu/packages/patches/lsh-no-root-login.patch \
146 gnu/packages/patches/lsh-pam-service-name.patch \
147 gnu/packages/patches/m4-gets-undeclared.patch \
148 gnu/packages/patches/m4-readlink-EINVAL.patch \
149 gnu/packages/patches/m4-s_isdir.patch \
150 gnu/packages/patches/make-impure-dirs.patch \
151 gnu/packages/patches/findutils-absolute-paths.patch \
152 gnu/packages/patches/perl-no-sys-dirs.patch \
153 gnu/packages/patches/procps-make-3.82.patch \
154 gnu/packages/patches/readline-link-ncurses.patch \
155 gnu/packages/patches/shishi-gets-undeclared.patch \
156 gnu/packages/patches/tar-gets-undeclared.patch
d7672884 157
1ffa7090 158bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
ac5aa288 159bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
d25468bc 160bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
ac5aa288
LC
161
162dist_bootstrap_x86_64_linux_DATA = \
1ffa7090
LC
163 gnu/packages/bootstrap/x86_64-linux/bash \
164 gnu/packages/bootstrap/x86_64-linux/mkdir \
165 gnu/packages/bootstrap/x86_64-linux/tar \
166 gnu/packages/bootstrap/x86_64-linux/xz
ac5aa288 167
d25468bc 168dist_bootstrap_i686_linux_DATA = \
1ffa7090
LC
169 gnu/packages/bootstrap/i686-linux/bash \
170 gnu/packages/bootstrap/i686-linux/mkdir \
171 gnu/packages/bootstrap/i686-linux/tar \
172 gnu/packages/bootstrap/i686-linux/xz
d25468bc 173
ac5aa288
LC
174# Big bootstrap binaries are not included in the tarball. Instead, they
175# are downloaded.
176nodist_bootstrap_x86_64_linux_DATA = \
1ffa7090 177 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
d25468bc 178nodist_bootstrap_i686_linux_DATA = \
1ffa7090 179 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
ac5aa288 180
5992f213
LC
181# Those files must remain executable, so they remain executable once
182# imported into the store.
183install-data-hook:
184 chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
185
d25468bc
LC
186DISTCLEANFILES = \
187 $(nodist_bootstrap_x86_64_linux_DATA) \
188 $(nodist_bootstrap_i686_linux_DATA)
ac5aa288
LC
189
190# Method to download a file from an external source.
191DOWNLOAD_FILE = \
192 GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
671d8f5e 193 $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
ac5aa288
LC
194 "$(top_srcdir)/build-aux/download.scm"
195
1ffa7090 196gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
735bb2af 197 $(MKDIR_P) `dirname "$@"`
79580eb6 198 $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
1ffa7090 199gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
735bb2af 200 $(MKDIR_P) `dirname "$@"`
79580eb6 201 $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
ac5aa288 202
00e219d1 203nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
af51c820
LC
204
205TESTS = \
ddc29a78 206 tests/base32.scm \
af51c820
LC
207 tests/builders.scm \
208 tests/derivations.scm \
e3ce5d70 209 tests/utils.scm \
b0e0d0e9 210 tests/build-utils.scm \
c8c88afa 211 tests/packages.scm \
10226c05 212 tests/snix.scm \
3259877d 213 tests/store.scm \
97298ffa 214 tests/union.scm \
0afdc485 215 tests/guix-build.sh \
37d19403 216 tests/guix-download.sh \
fe8ff028 217 tests/guix-gc.sh \
0afdc485 218 tests/guix-package.sh
af51c820 219
97298ffa
LC
220TEST_EXTENSIONS = .scm .sh
221
352ec143
LC
222AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
223
69cfce50 224SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
97298ffa
LC
225AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
226
69cfce50 227SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
97298ffa 228AM_SH_LOG_FLAGS = -x -e
af51c820 229
ed795c06 230EXTRA_DIST = \
450ccdc3 231 HACKING \
b6dd891c 232 ROADMAP \
6b8875c8 233 TODO \
1722d680 234 .dir-locals.el \
8c0e5b1e 235 hydra.scm \
ac5aa288 236 build-aux/download.scm \
ed795c06
LC
237 srfi/srfi-64.scm \
238 srfi/srfi-64.upstream.scm \
d95c0113 239 tests/test.drv \
ed795c06 240 build-aux/config.rpath \
b49ffe2d 241 bootstrap \
ed795c06
LC
242 release.nix \
243 $(TESTS)
d7672884 244
af51c820
LC
245CLEANFILES = $(GOBJECTS) *.log
246
247.scm.go:
248 $(MKDIR_P) `dirname "$@"`
671d8f5e
LC
249 $(top_builddir)/pre-inst-env \
250 $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
251 -Wformat -Wunbound-variable -Warity-mismatch \
252 --target="$(host)" \
af51c820
LC
253 -o "$@" "$<"
254
255SUFFIXES = .go
256
257# Make sure source files are installed first, so that the mtime of
258# installed compiled files is greater than that of installed source
259# files. See
260# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
261# for details.
262guix_install_go_files = install-nobase_nodist_guilemoduleDATA
263$(guix_install_go_files): install-nobase_dist_guilemoduleDATA
f68b0893
LC
264
265SUBDIRS = po
266
568717fd
LC
267info_TEXINFOS = doc/guix.texi
268EXTRA_DIST += doc/fdl-1.3.texi
269
c2033df4
LC
270if BUILD_DAEMON
271
272include daemon.am
273
274endif BUILD_DAEMON
275
f68b0893 276ACLOCAL_AMFLAGS = -I m4
e76bdf8b 277AM_DISTCHECK_CONFIGURE_FLAGS = \
d388c2c4 278 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
aca54b39
LC
279 --with-nix-prefix="$(NIX_PREFIX)" \
280 --enable-daemon