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