gnu: Use synopses from the Womb.
[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 20bin_SCRIPTS = \
e49951eb 21 scripts/guix
14a1c319 22
58867ae7
MW
23nodist_noinst_SCRIPTS = \
24 pre-inst-env \
25 test-env
26
af51c820 27MODULES = \
e49951eb
MW
28 guix/scripts/build.scm \
29 guix/scripts/download.scm \
30 guix/scripts/import.scm \
31 guix/scripts/package.scm \
32 guix/scripts/gc.scm \
f651b477 33 guix/scripts/pull.scm \
f65cf81a 34 guix/scripts/substitute-binary.scm \
ddc29a78 35 guix/base32.scm \
73fbb904 36 guix/utils.scm \
0f41c26f
LC
37 guix/serialization.scm \
38 guix/nar.scm \
af51c820 39 guix/derivations.scm \
62cab99c 40 guix/download.scm \
22189ed1 41 guix/gnu-maintenance.scm \
838d78e3 42 guix/licenses.scm \
208f7cd1 43 guix/build-system.scm \
c6bded8a 44 guix/build-system/cmake.scm \
208f7cd1 45 guix/build-system/gnu.scm \
08fd1ebe 46 guix/build-system/perl.scm \
be13fbfa 47 guix/build-system/trivial.scm \
457dd86d 48 guix/ftp-client.scm \
af51c820 49 guix/store.scm \
073c34d7 50 guix/ui.scm \
62cab99c 51 guix/build/download.scm \
c6bded8a 52 guix/build/cmake-build-system.scm \
af51c820 53 guix/build/gnu-build-system.scm \
08fd1ebe 54 guix/build/perl-build-system.scm \
1273d44a 55 guix/build/utils.scm \
c8c88afa 56 guix/build/union.scm \
e3ce5d70 57 guix/packages.scm \
10226c05 58 guix/snix.scm \
e3ce5d70 59 guix.scm \
59a43334 60 gnu/packages.scm \
1ffa7090
LC
61 gnu/packages/acl.scm \
62 gnu/packages/algebra.scm \
63 gnu/packages/aspell.scm \
64 gnu/packages/attr.scm \
65 gnu/packages/autotools.scm \
c50cbfd6 66 gnu/packages/avahi.scm \
1ffa7090
LC
67 gnu/packages/base.scm \
68 gnu/packages/bash.scm \
69 gnu/packages/bdb.scm \
70 gnu/packages/bdw-gc.scm \
71 gnu/packages/bison.scm \
72 gnu/packages/bootstrap.scm \
6064c4cd 73 gnu/packages/cdrom.scm \
7bf56918 74 gnu/packages/cflow.scm \
1ffa7090 75 gnu/packages/check.scm \
b6a64843 76 gnu/packages/cmake.scm \
1ffa7090
LC
77 gnu/packages/compression.scm \
78 gnu/packages/cpio.scm \
47a9cb95 79 gnu/packages/cppi.scm \
6b9105e5 80 gnu/packages/curl.scm \
1ffa7090
LC
81 gnu/packages/cyrus-sasl.scm \
82 gnu/packages/dejagnu.scm \
83 gnu/packages/ddrescue.scm \
84 gnu/packages/ed.scm \
85 gnu/packages/emacs.scm \
563e8b39 86 gnu/packages/fdisk.scm \
1ffa7090
LC
87 gnu/packages/file.scm \
88 gnu/packages/flex.scm \
a86177d6 89 gnu/packages/fontutils.scm \
1ffa7090 90 gnu/packages/gawk.scm \
e9c0b944 91 gnu/packages/gcc.scm \
1ffa7090
LC
92 gnu/packages/gdb.scm \
93 gnu/packages/gdbm.scm \
94 gnu/packages/gettext.scm \
bf4018fb 95 gnu/packages/ghostscript.scm \
3889a82e 96 gnu/packages/glib.scm \
1ffa7090
LC
97 gnu/packages/global.scm \
98 gnu/packages/gnupg.scm \
99 gnu/packages/gnutls.scm \
100 gnu/packages/gperf.scm \
9c63fe6c 101 gnu/packages/gprolog.scm \
23180beb 102 gnu/packages/groff.scm \
65d8b777 103 gnu/packages/grub.scm \
1ffa7090
LC
104 gnu/packages/gsasl.scm \
105 gnu/packages/guile.scm \
106 gnu/packages/help2man.scm \
107 gnu/packages/icu4c.scm \
108 gnu/packages/idutils.scm \
109 gnu/packages/indent.scm \
f1d2872c 110 gnu/packages/irssi.scm \
1ffa7090
LC
111 gnu/packages/ld-wrapper.scm \
112 gnu/packages/less.scm \
df84950e 113 gnu/packages/libapr.scm \
4cdbdd44 114 gnu/packages/libdaemon.scm \
6b32a64a 115 gnu/packages/libevent.scm \
1ffa7090
LC
116 gnu/packages/libffi.scm \
117 gnu/packages/libidn.scm \
118 gnu/packages/libjpeg.scm \
adb5f469 119 gnu/packages/libphidget.scm \
23f339dd 120 gnu/packages/libpng.scm \
1ffa7090
LC
121 gnu/packages/libsigsegv.scm \
122 gnu/packages/libtiff.scm \
123 gnu/packages/libunistring.scm \
124 gnu/packages/libusb.scm \
57f662ad 125 gnu/packages/libunwind.scm \
1ffa7090 126 gnu/packages/linux.scm \
f09d925b 127 gnu/packages/linux-initrd.scm \
1ffa7090
LC
128 gnu/packages/lout.scm \
129 gnu/packages/lsh.scm \
938081b9 130 gnu/packages/lsof.scm \
712e6e68 131 gnu/packages/lua.scm \
1ffa7090
LC
132 gnu/packages/m4.scm \
133 gnu/packages/mailutils.scm \
134 gnu/packages/make-bootstrap.scm \
135 gnu/packages/mit-krb5.scm \
d464e725 136 gnu/packages/mp3.scm \
1ffa7090
LC
137 gnu/packages/multiprecision.scm \
138 gnu/packages/mysql.scm \
139 gnu/packages/nano.scm \
140 gnu/packages/ncurses.scm \
05bf6f82 141 gnu/packages/netpbm.scm \
1ffa7090 142 gnu/packages/nettle.scm \
d192efae 143 gnu/packages/ocaml.scm \
6a06172b 144 gnu/packages/oggvorbis.scm \
2a75d4e6
AE
145 gnu/packages/openldap.scm \
146 gnu/packages/openssl.scm \
e04f30e0 147 gnu/packages/parted.scm \
2d73db7a 148 gnu/packages/patchelf.scm \
10d1822b 149 gnu/packages/pcre.scm \
135eb524 150 gnu/packages/pdf.scm \
1ffa7090
LC
151 gnu/packages/perl.scm \
152 gnu/packages/pkg-config.scm \
df77a462 153 gnu/packages/popt.scm \
1ffa7090
LC
154 gnu/packages/pth.scm \
155 gnu/packages/python.scm \
b15fcf9e 156 gnu/packages/qemu.scm \
1ffa7090
LC
157 gnu/packages/readline.scm \
158 gnu/packages/recutils.scm \
159 gnu/packages/rsync.scm \
a40f1543 160 gnu/packages/samba.scm \
1ffa7090 161 gnu/packages/scheme.scm \
6c3a7204 162 gnu/packages/screen.scm \
1ffa7090 163 gnu/packages/shishi.scm \
54845460 164 gnu/packages/smalltalk.scm \
97715602 165 gnu/packages/sqlite.scm \
2fbf053b 166 gnu/packages/ssh.scm \
59db0194 167 gnu/packages/subversion.scm \
1ffa7090
LC
168 gnu/packages/system.scm \
169 gnu/packages/tcl.scm \
16fd1db5 170 gnu/packages/tcsh.scm \
1ffa7090 171 gnu/packages/texinfo.scm \
eb0119ef 172 gnu/packages/texlive.scm \
1ffa7090 173 gnu/packages/time.scm \
b1426f17 174 gnu/packages/tmux.scm \
7f08437b 175 gnu/packages/tor.scm \
eb490858 176 gnu/packages/vim.scm \
49f24f41 177 gnu/packages/vpn.scm \
bd5ecea6 178 gnu/packages/w3m.scm \
8c3c896d 179 gnu/packages/wdiff.scm \
1ffa7090
LC
180 gnu/packages/wget.scm \
181 gnu/packages/which.scm \
182 gnu/packages/xml.scm \
b8d3511a 183 gnu/packages/zile.scm \
04086015
LC
184 gnu/packages/zip.scm \
185 gnu/system/vm.scm
af51c820 186
855a8ad7
LC
187# Because of the autoload hack in (guix build download), we must build it
188# first to avoid errors on systems where (gnutls) is unavailable.
189guix/scripts/download.go: guix/build/download.go
c44899a2 190
00e219d1 191GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
af51c820 192
800cdeef
LC
193nobase_dist_guilemodule_DATA = $(MODULES)
194
1ffa7090 195patchdir = $(guilemoduledir)/gnu/packages/patches
7cd1d7bd
LC
196dist_patch_DATA = \
197 gnu/packages/patches/automake-skip-amhello-tests.patch \
198 gnu/packages/patches/bigloo-gc-shebangs.patch \
199 gnu/packages/patches/binutils-ld-new-dtags.patch \
b6a64843 200 gnu/packages/patches/cmake-fix-tests.patch \
7cd1d7bd
LC
201 gnu/packages/patches/cpio-gets-undeclared.patch \
202 gnu/packages/patches/diffutils-gets-undeclared.patch \
203 gnu/packages/patches/emacs-configure-sh.patch \
9ae7865e
AE
204 gnu/packages/patches/findutils-absolute-paths.patch \
205 gnu/packages/patches/flac-fix-memcmp-not-declared.patch \
7cd1d7bd
LC
206 gnu/packages/patches/flex-bison-tests.patch \
207 gnu/packages/patches/gawk-shell.patch \
208 gnu/packages/patches/gettext-gets-undeclared.patch \
209 gnu/packages/patches/glib-tests-desktop.patch \
210 gnu/packages/patches/glib-tests-homedir.patch \
785db4d8 211 gnu/packages/patches/glib-tests-prlimit.patch \
7cd1d7bd
LC
212 gnu/packages/patches/glib-tests-timezone.patch \
213 gnu/packages/patches/glibc-bootstrap-system.patch \
214 gnu/packages/patches/glibc-no-ld-so-cache.patch \
65d8b777 215 gnu/packages/patches/grub-gets-undeclared.patch \
7cd1d7bd
LC
216 gnu/packages/patches/guile-1.8-cpp-4.5.patch \
217 gnu/packages/patches/guile-default-utf8.patch \
6956067b 218 gnu/packages/patches/guile-linux-syscalls.patch \
7cd1d7bd 219 gnu/packages/patches/guile-relocatable.patch \
785db4d8 220 gnu/packages/patches/libapr-skip-getservbyname-test.patch \
7cd1d7bd
LC
221 gnu/packages/patches/libevent-dns-tests.patch \
222 gnu/packages/patches/libtool-skip-tests.patch \
223 gnu/packages/patches/lsh-guile-compat.patch \
224 gnu/packages/patches/lsh-no-root-login.patch \
225 gnu/packages/patches/lsh-pam-service-name.patch \
226 gnu/packages/patches/m4-gets-undeclared.patch \
227 gnu/packages/patches/m4-readlink-EINVAL.patch \
228 gnu/packages/patches/m4-s_isdir.patch \
229 gnu/packages/patches/make-impure-dirs.patch \
250b0404 230 gnu/packages/patches/mcron-install.patch \
7cd1d7bd
LC
231 gnu/packages/patches/perl-no-sys-dirs.patch \
232 gnu/packages/patches/procps-make-3.82.patch \
161ed547 233 gnu/packages/patches/qemu-multiple-smb-shares.patch \
7cd1d7bd 234 gnu/packages/patches/readline-link-ncurses.patch \
e5c0701f 235 gnu/packages/patches/tar-gets-undeclared.patch \
785db4d8 236 gnu/packages/patches/tcsh-fix-autotest.patch \
49f24f41 237 gnu/packages/patches/teckit-cstdio.patch \
bd5ecea6
NK
238 gnu/packages/patches/vpnc-script.patch \
239 gnu/packages/patches/w3m-fix-compile.patch
d7672884 240
1ffa7090 241bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
ac5aa288 242bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
d25468bc 243bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
ac5aa288
LC
244
245dist_bootstrap_x86_64_linux_DATA = \
1ffa7090
LC
246 gnu/packages/bootstrap/x86_64-linux/bash \
247 gnu/packages/bootstrap/x86_64-linux/mkdir \
248 gnu/packages/bootstrap/x86_64-linux/tar \
249 gnu/packages/bootstrap/x86_64-linux/xz
ac5aa288 250
d25468bc 251dist_bootstrap_i686_linux_DATA = \
1ffa7090
LC
252 gnu/packages/bootstrap/i686-linux/bash \
253 gnu/packages/bootstrap/i686-linux/mkdir \
254 gnu/packages/bootstrap/i686-linux/tar \
255 gnu/packages/bootstrap/i686-linux/xz
d25468bc 256
ac5aa288
LC
257# Big bootstrap binaries are not included in the tarball. Instead, they
258# are downloaded.
259nodist_bootstrap_x86_64_linux_DATA = \
1ffa7090 260 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
d25468bc 261nodist_bootstrap_i686_linux_DATA = \
1ffa7090 262 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
ac5aa288 263
5992f213
LC
264# Those files must remain executable, so they remain executable once
265# imported into the store.
266install-data-hook:
267 chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
268
d25468bc
LC
269DISTCLEANFILES = \
270 $(nodist_bootstrap_x86_64_linux_DATA) \
271 $(nodist_bootstrap_i686_linux_DATA)
ac5aa288
LC
272
273# Method to download a file from an external source.
274DOWNLOAD_FILE = \
275 GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
671d8f5e 276 $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
ac5aa288
LC
277 "$(top_srcdir)/build-aux/download.scm"
278
1ffa7090 279gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
735bb2af 280 $(MKDIR_P) `dirname "$@"`
79580eb6 281 $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
1ffa7090 282gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
735bb2af 283 $(MKDIR_P) `dirname "$@"`
79580eb6 284 $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
ac5aa288 285
00e219d1 286nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
af51c820
LC
287
288TESTS = \
ddc29a78 289 tests/base32.scm \
af51c820
LC
290 tests/builders.scm \
291 tests/derivations.scm \
299112d3 292 tests/ui.scm \
e3ce5d70 293 tests/utils.scm \
b0e0d0e9 294 tests/build-utils.scm \
c8c88afa 295 tests/packages.scm \
10226c05 296 tests/snix.scm \
3259877d 297 tests/store.scm \
53c63ee9 298 tests/nar.scm \
97298ffa 299 tests/union.scm \
0afdc485 300 tests/guix-build.sh \
37d19403 301 tests/guix-download.sh \
fe8ff028 302 tests/guix-gc.sh \
0afdc485 303 tests/guix-package.sh
af51c820 304
97298ffa
LC
305TEST_EXTENSIONS = .scm .sh
306
352ec143
LC
307AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
308
69cfce50 309SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
97298ffa
LC
310AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
311
69cfce50 312SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
97298ffa 313AM_SH_LOG_FLAGS = -x -e
af51c820 314
ed795c06 315EXTRA_DIST = \
450ccdc3 316 HACKING \
b6dd891c 317 ROADMAP \
6b8875c8 318 TODO \
1722d680 319 .dir-locals.el \
8c0e5b1e 320 hydra.scm \
ac5aa288 321 build-aux/download.scm \
ed795c06
LC
322 srfi/srfi-64.scm \
323 srfi/srfi-64.upstream.scm \
d95c0113 324 tests/test.drv \
ed795c06 325 build-aux/config.rpath \
b49ffe2d 326 bootstrap \
ed795c06
LC
327 release.nix \
328 $(TESTS)
d7672884 329
af51c820
LC
330CLEANFILES = $(GOBJECTS) *.log
331
a69b7ad2
LC
332# XXX: Use the C locale for when Guile lacks
333# <http://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=e2c6bf3866d1186c60bacfbd4fe5037087ee5e3f>.
af51c820
LC
334.scm.go:
335 $(MKDIR_P) `dirname "$@"`
a69b7ad2 336 LC_ALL=C \
671d8f5e
LC
337 $(top_builddir)/pre-inst-env \
338 $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
339 -Wformat -Wunbound-variable -Warity-mismatch \
340 --target="$(host)" \
af51c820
LC
341 -o "$@" "$<"
342
343SUFFIXES = .go
344
345# Make sure source files are installed first, so that the mtime of
346# installed compiled files is greater than that of installed source
347# files. See
348# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
349# for details.
350guix_install_go_files = install-nobase_nodist_guilemoduleDATA
351$(guix_install_go_files): install-nobase_dist_guilemoduleDATA
f68b0893
LC
352
353SUBDIRS = po
354
568717fd
LC
355info_TEXINFOS = doc/guix.texi
356EXTRA_DIST += doc/fdl-1.3.texi
357
c2033df4
LC
358if BUILD_DAEMON
359
360include daemon.am
361
362endif BUILD_DAEMON
363
f68b0893 364ACLOCAL_AMFLAGS = -I m4
e76bdf8b 365AM_DISTCHECK_CONFIGURE_FLAGS = \
d388c2c4 366 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
aca54b39
LC
367 --with-nix-prefix="$(NIX_PREFIX)" \
368 --enable-daemon