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