distro: Add MySQL.
[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 #
4 # This file is part of GNU Guix.
5 #
6 # GNU 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 # GNU 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 GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 bin_SCRIPTS = \
20 guix-build \
21 guix-download \
22 guix-import \
23 guix-package \
24 guix-gc
25
26 MODULES = \
27 guix/base32.scm \
28 guix/utils.scm \
29 guix/derivations.scm \
30 guix/download.scm \
31 guix/gnu-maintenance.scm \
32 guix/licenses.scm \
33 guix/build-system.scm \
34 guix/build-system/gnu.scm \
35 guix/build-system/trivial.scm \
36 guix/ftp-client.scm \
37 guix/store.scm \
38 guix/ui.scm \
39 guix/build/download.scm \
40 guix/build/gnu-build-system.scm \
41 guix/build/utils.scm \
42 guix/build/union.scm \
43 guix/packages.scm \
44 guix/snix.scm \
45 guix.scm \
46 distro.scm \
47 distro/packages/acl.scm \
48 distro/packages/algebra.scm \
49 distro/packages/aspell.scm \
50 distro/packages/attr.scm \
51 distro/packages/autotools.scm \
52 distro/packages/base.scm \
53 distro/packages/bash.scm \
54 distro/packages/bdw-gc.scm \
55 distro/packages/bison.scm \
56 distro/packages/bootstrap.scm \
57 distro/packages/check.scm \
58 distro/packages/compression.scm \
59 distro/packages/cpio.scm \
60 distro/packages/bdb.scm \
61 distro/packages/dejagnu.scm \
62 distro/packages/ddrescue.scm \
63 distro/packages/ed.scm \
64 distro/packages/flex.scm \
65 distro/packages/gawk.scm \
66 distro/packages/gdbm.scm \
67 distro/packages/gettext.scm \
68 distro/packages/global.scm \
69 distro/packages/gnupg.scm \
70 distro/packages/gnutls.scm \
71 distro/packages/gperf.scm \
72 distro/packages/gsasl.scm \
73 distro/packages/guile.scm \
74 distro/packages/help2man.scm \
75 distro/packages/idutils.scm \
76 distro/packages/ld-wrapper.scm \
77 distro/packages/less.scm \
78 distro/packages/libffi.scm \
79 distro/packages/libidn.scm \
80 distro/packages/libsigsegv.scm \
81 distro/packages/libunistring.scm \
82 distro/packages/libusb.scm \
83 distro/packages/linux.scm \
84 distro/packages/lout.scm \
85 distro/packages/lsh.scm \
86 distro/packages/m4.scm \
87 distro/packages/make-bootstrap.scm \
88 distro/packages/mit-krb5.scm \
89 distro/packages/multiprecision.scm \
90 distro/packages/mysql.scm \
91 distro/packages/nano.scm \
92 distro/packages/ncurses.scm \
93 distro/packages/nettle.scm \
94 distro/packages/openssl.scm \
95 distro/packages/perl.scm \
96 distro/packages/pkg-config.scm \
97 distro/packages/pth.scm \
98 distro/packages/readline.scm \
99 distro/packages/recutils.scm \
100 distro/packages/rsync.scm \
101 distro/packages/shishi.scm \
102 distro/packages/system.scm \
103 distro/packages/tcl.scm \
104 distro/packages/texinfo.scm \
105 distro/packages/time.scm \
106 distro/packages/wget.scm \
107 distro/packages/which.scm \
108 distro/packages/zile.scm
109
110
111 GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
112
113 nobase_dist_guilemodule_DATA = $(MODULES)
114
115 patchdir = $(guilemoduledir)/distro/packages/patches
116 dist_patch_DATA = \
117 distro/packages/patches/binutils-ld-new-dtags.patch \
118 distro/packages/patches/cpio-gets-undeclared.patch \
119 distro/packages/patches/diffutils-gets-undeclared.patch \
120 distro/packages/patches/flex-bison-tests.patch \
121 distro/packages/patches/gawk-shell.patch \
122 distro/packages/patches/gettext-gets-undeclared.patch \
123 distro/packages/patches/glibc-bootstrap-system.patch \
124 distro/packages/patches/glibc-no-ld-so-cache.patch \
125 distro/packages/patches/guile-1.8-cpp-4.5.patch \
126 distro/packages/patches/guile-default-utf8.patch \
127 distro/packages/patches/guile-relocatable.patch \
128 distro/packages/patches/libtool-skip-tests.patch \
129 distro/packages/patches/lsh-guile-compat.patch \
130 distro/packages/patches/lsh-no-root-login.patch \
131 distro/packages/patches/lsh-pam-service-name.patch \
132 distro/packages/patches/m4-gets-undeclared.patch \
133 distro/packages/patches/m4-readlink-EINVAL.patch \
134 distro/packages/patches/m4-s_isdir.patch \
135 distro/packages/patches/make-impure-dirs.patch \
136 distro/packages/patches/findutils-absolute-paths.patch \
137 distro/packages/patches/perl-no-sys-dirs.patch \
138 distro/packages/patches/readline-link-ncurses.patch \
139 distro/packages/patches/shishi-gets-undeclared.patch \
140 distro/packages/patches/tar-gets-undeclared.patch
141
142 bootstrapdir = $(guilemoduledir)/distro/packages/bootstrap
143 bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
144 bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
145
146 dist_bootstrap_x86_64_linux_DATA = \
147 distro/packages/bootstrap/x86_64-linux/bash \
148 distro/packages/bootstrap/x86_64-linux/mkdir \
149 distro/packages/bootstrap/x86_64-linux/tar \
150 distro/packages/bootstrap/x86_64-linux/xz
151
152 dist_bootstrap_i686_linux_DATA = \
153 distro/packages/bootstrap/i686-linux/bash \
154 distro/packages/bootstrap/i686-linux/mkdir \
155 distro/packages/bootstrap/i686-linux/tar \
156 distro/packages/bootstrap/i686-linux/xz
157
158 # Big bootstrap binaries are not included in the tarball. Instead, they
159 # are downloaded.
160 nodist_bootstrap_x86_64_linux_DATA = \
161 distro/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
162 nodist_bootstrap_i686_linux_DATA = \
163 distro/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
164
165 # Those files must remain executable, so they remain executable once
166 # imported into the store.
167 install-data-hook:
168 chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
169
170 DISTCLEANFILES = \
171 $(nodist_bootstrap_x86_64_linux_DATA) \
172 $(nodist_bootstrap_i686_linux_DATA)
173
174 # Method to download a file from an external source.
175 DOWNLOAD_FILE = \
176 GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
177 $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
178 "$(top_srcdir)/build-aux/download.scm"
179
180 distro/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
181 $(MKDIR_P) `dirname "$@"`
182 $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
183 distro/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
184 $(MKDIR_P) `dirname "$@"`
185 $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
186
187 nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
188
189 TESTS = \
190 tests/base32.scm \
191 tests/builders.scm \
192 tests/derivations.scm \
193 tests/utils.scm \
194 tests/build-utils.scm \
195 tests/packages.scm \
196 tests/snix.scm \
197 tests/store.scm \
198 tests/union.scm \
199 tests/guix-build.sh \
200 tests/guix-download.sh \
201 tests/guix-gc.sh \
202 tests/guix-package.sh
203
204 TEST_EXTENSIONS = .scm .sh
205
206 AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
207
208 SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
209 AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
210
211 SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
212 AM_SH_LOG_FLAGS = -x -e
213
214 EXTRA_DIST = \
215 HACKING \
216 ROADMAP \
217 TODO \
218 .dir-locals.el \
219 hydra.scm \
220 build-aux/download.scm \
221 srfi/srfi-64.scm \
222 srfi/srfi-64.upstream.scm \
223 tests/test.drv \
224 build-aux/config.rpath \
225 bootstrap \
226 release.nix \
227 $(TESTS)
228
229 CLEANFILES = $(GOBJECTS) *.log
230
231 .scm.go:
232 $(MKDIR_P) `dirname "$@"`
233 $(top_builddir)/pre-inst-env \
234 $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
235 -Wformat -Wunbound-variable -Warity-mismatch \
236 --target="$(host)" \
237 -o "$@" "$<"
238
239 SUFFIXES = .go
240
241 # Make sure source files are installed first, so that the mtime of
242 # installed compiled files is greater than that of installed source
243 # files. See
244 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
245 # for details.
246 guix_install_go_files = install-nobase_nodist_guilemoduleDATA
247 $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
248
249 SUBDIRS = po
250
251 info_TEXINFOS = doc/guix.texi
252 EXTRA_DIST += doc/fdl-1.3.texi
253
254 if BUILD_DAEMON
255
256 include daemon.am
257
258 endif BUILD_DAEMON
259
260 ACLOCAL_AMFLAGS = -I m4
261 AM_DISTCHECK_CONFIGURE_FLAGS = \
262 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
263 --with-nix-prefix="$(NIX_PREFIX)" \
264 --enable-daemon