gnu: Add GNU Speex.
[jackhill/guix/guix.git] / Makefile.am
1 # GNU Guix --- Functional package management for GNU
2 # Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
3 # Copyright © 2013 Andreas Enge <andreas@enge.fr>
4 #
5 # This file is part of GNU Guix.
6 #
7 # GNU Guix is free software; you can redistribute it and/or modify it
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 #
12 # GNU Guix is distributed in the hope that it will be useful, but
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
18 # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20 bin_SCRIPTS = \
21 guix-build \
22 guix-download \
23 guix-import \
24 guix-package \
25 guix-gc
26
27 MODULES = \
28 guix/base32.scm \
29 guix/utils.scm \
30 guix/derivations.scm \
31 guix/download.scm \
32 guix/gnu-maintenance.scm \
33 guix/licenses.scm \
34 guix/build-system.scm \
35 guix/build-system/gnu.scm \
36 guix/build-system/trivial.scm \
37 guix/ftp-client.scm \
38 guix/store.scm \
39 guix/ui.scm \
40 guix/build/download.scm \
41 guix/build/gnu-build-system.scm \
42 guix/build/utils.scm \
43 guix/build/union.scm \
44 guix/packages.scm \
45 guix/snix.scm \
46 guix.scm \
47 gnu/packages.scm \
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/libpng.scm \
89 gnu/packages/libsigsegv.scm \
90 gnu/packages/libtiff.scm \
91 gnu/packages/libunistring.scm \
92 gnu/packages/libusb.scm \
93 gnu/packages/linux.scm \
94 gnu/packages/lout.scm \
95 gnu/packages/lsh.scm \
96 gnu/packages/m4.scm \
97 gnu/packages/mailutils.scm \
98 gnu/packages/make-bootstrap.scm \
99 gnu/packages/mit-krb5.scm \
100 gnu/packages/multiprecision.scm \
101 gnu/packages/mysql.scm \
102 gnu/packages/nano.scm \
103 gnu/packages/ncurses.scm \
104 gnu/packages/nettle.scm \
105 gnu/packages/openssl.scm \
106 gnu/packages/oggvorbis.scm \
107 gnu/packages/perl.scm \
108 gnu/packages/pkg-config.scm \
109 gnu/packages/pth.scm \
110 gnu/packages/python.scm \
111 gnu/packages/readline.scm \
112 gnu/packages/recutils.scm \
113 gnu/packages/rsync.scm \
114 gnu/packages/scheme.scm \
115 gnu/packages/shishi.scm \
116 gnu/packages/system.scm \
117 gnu/packages/tcl.scm \
118 gnu/packages/texinfo.scm \
119 gnu/packages/time.scm \
120 gnu/packages/wget.scm \
121 gnu/packages/which.scm \
122 gnu/packages/xml.scm \
123 gnu/packages/zile.scm
124
125
126 GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
127
128 nobase_dist_guilemodule_DATA = $(MODULES)
129
130 patchdir = $(guilemoduledir)/gnu/packages/patches
131 dist_patch_DATA = \
132 gnu/packages/patches/bigloo-gc-shebangs.patch \
133 gnu/packages/patches/binutils-ld-new-dtags.patch \
134 gnu/packages/patches/cpio-gets-undeclared.patch \
135 gnu/packages/patches/diffutils-gets-undeclared.patch \
136 gnu/packages/patches/emacs-configure-sh.patch \
137 gnu/packages/patches/flex-bison-tests.patch \
138 gnu/packages/patches/gawk-shell.patch \
139 gnu/packages/patches/gettext-gets-undeclared.patch \
140 gnu/packages/patches/glibc-bootstrap-system.patch \
141 gnu/packages/patches/glibc-no-ld-so-cache.patch \
142 gnu/packages/patches/guile-1.8-cpp-4.5.patch \
143 gnu/packages/patches/guile-default-utf8.patch \
144 gnu/packages/patches/guile-relocatable.patch \
145 gnu/packages/patches/libtool-skip-tests.patch \
146 gnu/packages/patches/lsh-guile-compat.patch \
147 gnu/packages/patches/lsh-no-root-login.patch \
148 gnu/packages/patches/lsh-pam-service-name.patch \
149 gnu/packages/patches/m4-gets-undeclared.patch \
150 gnu/packages/patches/m4-readlink-EINVAL.patch \
151 gnu/packages/patches/m4-s_isdir.patch \
152 gnu/packages/patches/make-impure-dirs.patch \
153 gnu/packages/patches/findutils-absolute-paths.patch \
154 gnu/packages/patches/perl-no-sys-dirs.patch \
155 gnu/packages/patches/procps-make-3.82.patch \
156 gnu/packages/patches/readline-link-ncurses.patch \
157 gnu/packages/patches/shishi-gets-undeclared.patch \
158 gnu/packages/patches/tar-gets-undeclared.patch
159
160 bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
161 bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
162 bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
163
164 dist_bootstrap_x86_64_linux_DATA = \
165 gnu/packages/bootstrap/x86_64-linux/bash \
166 gnu/packages/bootstrap/x86_64-linux/mkdir \
167 gnu/packages/bootstrap/x86_64-linux/tar \
168 gnu/packages/bootstrap/x86_64-linux/xz
169
170 dist_bootstrap_i686_linux_DATA = \
171 gnu/packages/bootstrap/i686-linux/bash \
172 gnu/packages/bootstrap/i686-linux/mkdir \
173 gnu/packages/bootstrap/i686-linux/tar \
174 gnu/packages/bootstrap/i686-linux/xz
175
176 # Big bootstrap binaries are not included in the tarball. Instead, they
177 # are downloaded.
178 nodist_bootstrap_x86_64_linux_DATA = \
179 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
180 nodist_bootstrap_i686_linux_DATA = \
181 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
182
183 # Those files must remain executable, so they remain executable once
184 # imported into the store.
185 install-data-hook:
186 chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
187
188 DISTCLEANFILES = \
189 $(nodist_bootstrap_x86_64_linux_DATA) \
190 $(nodist_bootstrap_i686_linux_DATA)
191
192 # Method to download a file from an external source.
193 DOWNLOAD_FILE = \
194 GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
195 $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
196 "$(top_srcdir)/build-aux/download.scm"
197
198 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
199 $(MKDIR_P) `dirname "$@"`
200 $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
201 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
202 $(MKDIR_P) `dirname "$@"`
203 $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
204
205 nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
206
207 TESTS = \
208 tests/base32.scm \
209 tests/builders.scm \
210 tests/derivations.scm \
211 tests/utils.scm \
212 tests/build-utils.scm \
213 tests/packages.scm \
214 tests/snix.scm \
215 tests/store.scm \
216 tests/union.scm \
217 tests/guix-build.sh \
218 tests/guix-download.sh \
219 tests/guix-gc.sh \
220 tests/guix-package.sh
221
222 TEST_EXTENSIONS = .scm .sh
223
224 AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
225
226 SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
227 AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
228
229 SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
230 AM_SH_LOG_FLAGS = -x -e
231
232 EXTRA_DIST = \
233 HACKING \
234 ROADMAP \
235 TODO \
236 .dir-locals.el \
237 hydra.scm \
238 build-aux/download.scm \
239 srfi/srfi-64.scm \
240 srfi/srfi-64.upstream.scm \
241 tests/test.drv \
242 build-aux/config.rpath \
243 bootstrap \
244 release.nix \
245 $(TESTS)
246
247 CLEANFILES = $(GOBJECTS) *.log
248
249 .scm.go:
250 $(MKDIR_P) `dirname "$@"`
251 $(top_builddir)/pre-inst-env \
252 $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
253 -Wformat -Wunbound-variable -Warity-mismatch \
254 --target="$(host)" \
255 -o "$@" "$<"
256
257 SUFFIXES = .go
258
259 # Make sure source files are installed first, so that the mtime of
260 # installed compiled files is greater than that of installed source
261 # files. See
262 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
263 # for details.
264 guix_install_go_files = install-nobase_nodist_guilemoduleDATA
265 $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
266
267 SUBDIRS = po
268
269 info_TEXINFOS = doc/guix.texi
270 EXTRA_DIST += doc/fdl-1.3.texi
271
272 if BUILD_DAEMON
273
274 include daemon.am
275
276 endif BUILD_DAEMON
277
278 ACLOCAL_AMFLAGS = -I m4
279 AM_DISTCHECK_CONFIGURE_FLAGS = \
280 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
281 --with-nix-prefix="$(NIX_PREFIX)" \
282 --enable-daemon