Commit | Line | Data |
---|---|---|
af51c820 LC |
1 | # Guix --- Nix package management from Guile. -*- coding: utf-8 -*- |
2 | # Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org> | |
3 | # | |
4 | # This file is part of Guix. | |
5 | # | |
6 | # 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 | # 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 Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
c52a5bf0 LC |
19 | bin_SCRIPTS = \ |
20 | guix-build \ | |
0afdc485 | 21 | guix-download \ |
10226c05 | 22 | guix-import \ |
0afdc485 | 23 | guix-package |
14a1c319 | 24 | |
af51c820 | 25 | MODULES = \ |
ddc29a78 | 26 | guix/base32.scm \ |
73fbb904 | 27 | guix/utils.scm \ |
af51c820 | 28 | guix/derivations.scm \ |
62cab99c | 29 | guix/download.scm \ |
208f7cd1 LC |
30 | guix/build-system.scm \ |
31 | guix/build-system/gnu.scm \ | |
be13fbfa | 32 | guix/build-system/trivial.scm \ |
457dd86d | 33 | guix/ftp-client.scm \ |
af51c820 | 34 | guix/store.scm \ |
073c34d7 | 35 | guix/ui.scm \ |
62cab99c | 36 | guix/build/download.scm \ |
af51c820 | 37 | guix/build/gnu-build-system.scm \ |
1273d44a | 38 | guix/build/utils.scm \ |
c8c88afa | 39 | guix/build/union.scm \ |
e3ce5d70 | 40 | guix/packages.scm \ |
10226c05 | 41 | guix/snix.scm \ |
e3ce5d70 | 42 | guix.scm \ |
6b1891b0 | 43 | distro.scm \ |
1f455fdc | 44 | distro/packages/base.scm \ |
c44899a2 LC |
45 | distro/packages/bash.scm \ |
46 | distro/packages/bdw-gc.scm \ | |
18633d4f | 47 | distro/packages/bootstrap.scm \ |
a268f085 | 48 | distro/packages/compression.scm \ |
c44899a2 | 49 | distro/packages/gawk.scm \ |
8d1939e4 | 50 | distro/packages/gnupg.scm \ |
7543f865 | 51 | distro/packages/gnutls.scm \ |
1627f7f7 | 52 | distro/packages/gperf.scm \ |
1722d680 LC |
53 | distro/packages/guile.scm \ |
54 | distro/packages/ld-wrapper.scm \ | |
c44899a2 LC |
55 | distro/packages/libffi.scm \ |
56 | distro/packages/libsigsegv.scm \ | |
57 | distro/packages/libtool.scm \ | |
58 | distro/packages/libunistring.scm \ | |
9d9e6450 | 59 | distro/packages/lout.scm \ |
c44899a2 | 60 | distro/packages/m4.scm \ |
8ba60d7b | 61 | distro/packages/make-bootstrap.scm \ |
c44899a2 LC |
62 | distro/packages/multiprecision.scm \ |
63 | distro/packages/ncurses.scm \ | |
2e659827 | 64 | distro/packages/nettle.scm \ |
c44899a2 LC |
65 | distro/packages/perl.scm \ |
66 | distro/packages/pkg-config.scm \ | |
d373e57e | 67 | distro/packages/pth.scm \ |
c44899a2 | 68 | distro/packages/readline.scm \ |
db32c281 LC |
69 | distro/packages/recutils.scm \ |
70 | distro/packages/texinfo.scm | |
af51c820 | 71 | |
c44899a2 | 72 | |
00e219d1 | 73 | GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go |
af51c820 | 74 | |
800cdeef LC |
75 | nobase_dist_guilemodule_DATA = $(MODULES) |
76 | ||
77 | patchdir = $(pkgdatadir)/patches | |
bfb3c3d0 LC |
78 | dist_patch_DATA = \ |
79 | distro/packages/patches/binutils-ld-new-dtags.patch \ | |
80 | distro/packages/patches/diffutils-gets-undeclared.patch \ | |
25608d64 | 81 | distro/packages/patches/glibc-no-ld-so-cache.patch \ |
bfb3c3d0 LC |
82 | distro/packages/patches/guile-1.8-cpp-4.5.patch \ |
83 | distro/packages/patches/guile-default-utf8.patch \ | |
84 | distro/packages/patches/guile-relocatable.patch \ | |
85 | distro/packages/patches/libtool-skip-tests.patch \ | |
86 | distro/packages/patches/m4-gets-undeclared.patch \ | |
87 | distro/packages/patches/m4-readlink-EINVAL.patch \ | |
88 | distro/packages/patches/m4-s_isdir.patch \ | |
89 | distro/packages/patches/make-impure-dirs.patch \ | |
90 | distro/packages/patches/findutils-absolute-paths.patch \ | |
91 | distro/packages/patches/perl-no-sys-dirs.patch \ | |
92 | distro/packages/patches/readline-link-ncurses.patch \ | |
93 | distro/packages/patches/tar-gets-undeclared.patch | |
d7672884 | 94 | |
ac5aa288 LC |
95 | bootstrapdir = $(pkgdatadir)/bootstrap |
96 | bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux | |
d25468bc | 97 | bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux |
ac5aa288 LC |
98 | |
99 | dist_bootstrap_x86_64_linux_DATA = \ | |
100 | distro/packages/bootstrap/x86_64-linux/bash \ | |
101 | distro/packages/bootstrap/x86_64-linux/mkdir \ | |
102 | distro/packages/bootstrap/x86_64-linux/tar \ | |
103 | distro/packages/bootstrap/x86_64-linux/xz | |
104 | ||
d25468bc LC |
105 | dist_bootstrap_i686_linux_DATA = \ |
106 | distro/packages/bootstrap/i686-linux/bash \ | |
107 | distro/packages/bootstrap/i686-linux/mkdir \ | |
108 | distro/packages/bootstrap/i686-linux/tar \ | |
109 | distro/packages/bootstrap/i686-linux/xz | |
110 | ||
ac5aa288 LC |
111 | # Big bootstrap binaries are not included in the tarball. Instead, they |
112 | # are downloaded. | |
113 | nodist_bootstrap_x86_64_linux_DATA = \ | |
114 | distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz | |
d25468bc LC |
115 | nodist_bootstrap_i686_linux_DATA = \ |
116 | distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz | |
ac5aa288 | 117 | |
5992f213 LC |
118 | # Those files must remain executable, so they remain executable once |
119 | # imported into the store. | |
120 | install-data-hook: | |
121 | chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz} | |
122 | ||
d25468bc LC |
123 | DISTCLEANFILES = \ |
124 | $(nodist_bootstrap_x86_64_linux_DATA) \ | |
125 | $(nodist_bootstrap_i686_linux_DATA) | |
ac5aa288 LC |
126 | |
127 | # Method to download a file from an external source. | |
128 | DOWNLOAD_FILE = \ | |
129 | GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \ | |
671d8f5e | 130 | $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \ |
ac5aa288 LC |
131 | "$(top_srcdir)/build-aux/download.scm" |
132 | ||
74fe2df2 | 133 | distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz: |
735bb2af | 134 | $(MKDIR_P) `dirname "$@"` |
ac5aa288 | 135 | $(DOWNLOAD_FILE) "$@" "0467a82cbe4136f60a79eb4176011bf88cf28ea19c9ad9defa365811ff8e11cf" |
74fe2df2 | 136 | distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz: |
735bb2af | 137 | $(MKDIR_P) `dirname "$@"` |
d25468bc | 138 | $(DOWNLOAD_FILE) "$@" "93b537766dfab3ad287143523751e3ec02dd32d3ccaf88ad2d31c63158f342ee" |
ac5aa288 | 139 | |
00e219d1 | 140 | nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm |
af51c820 LC |
141 | |
142 | TESTS = \ | |
ddc29a78 | 143 | tests/base32.scm \ |
af51c820 LC |
144 | tests/builders.scm \ |
145 | tests/derivations.scm \ | |
e3ce5d70 | 146 | tests/utils.scm \ |
b0e0d0e9 | 147 | tests/build-utils.scm \ |
c8c88afa | 148 | tests/packages.scm \ |
10226c05 | 149 | tests/snix.scm \ |
97298ffa | 150 | tests/union.scm \ |
0afdc485 | 151 | tests/guix-build.sh \ |
37d19403 | 152 | tests/guix-download.sh \ |
0afdc485 | 153 | tests/guix-package.sh |
af51c820 | 154 | |
97298ffa LC |
155 | TEST_EXTENSIONS = .scm .sh |
156 | ||
352ec143 LC |
157 | AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" |
158 | ||
97298ffa LC |
159 | SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE) |
160 | AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)" | |
161 | ||
162 | SH_LOG_COMPILER = $(top_builddir)/pre-inst-env $(SHELL) | |
163 | AM_SH_LOG_FLAGS = -x -e | |
af51c820 | 164 | |
ed795c06 | 165 | EXTRA_DIST = \ |
450ccdc3 | 166 | HACKING \ |
1722d680 | 167 | .dir-locals.el \ |
ac5aa288 | 168 | build-aux/download.scm \ |
ed795c06 LC |
169 | srfi/srfi-64.scm \ |
170 | srfi/srfi-64.upstream.scm \ | |
d95c0113 | 171 | tests/test.drv \ |
ed795c06 LC |
172 | build-aux/config.rpath \ |
173 | release.nix \ | |
174 | $(TESTS) | |
d7672884 | 175 | |
af51c820 LC |
176 | CLEANFILES = $(GOBJECTS) *.log |
177 | ||
178 | .scm.go: | |
179 | $(MKDIR_P) `dirname "$@"` | |
671d8f5e LC |
180 | DISTRO_INSTALLED_PATCH_DIRECTORY="$(patchdir)" \ |
181 | DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY="$(bootstrapdir)" \ | |
182 | $(top_builddir)/pre-inst-env \ | |
183 | $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \ | |
184 | -Wformat -Wunbound-variable -Warity-mismatch \ | |
185 | --target="$(host)" \ | |
af51c820 LC |
186 | -o "$@" "$<" |
187 | ||
188 | SUFFIXES = .go | |
189 | ||
190 | # Make sure source files are installed first, so that the mtime of | |
191 | # installed compiled files is greater than that of installed source | |
192 | # files. See | |
193 | # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html> | |
194 | # for details. | |
195 | guix_install_go_files = install-nobase_nodist_guilemoduleDATA | |
196 | $(guix_install_go_files): install-nobase_dist_guilemoduleDATA | |
f68b0893 LC |
197 | |
198 | SUBDIRS = po | |
199 | ||
568717fd LC |
200 | info_TEXINFOS = doc/guix.texi |
201 | EXTRA_DIST += doc/fdl-1.3.texi | |
202 | ||
f68b0893 | 203 | ACLOCAL_AMFLAGS = -I m4 |
e76bdf8b | 204 | AM_DISTCHECK_CONFIGURE_FLAGS = \ |
d388c2c4 | 205 | --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \ |
e76bdf8b | 206 | --with-nix-prefix="$(NIX_PREFIX)" |