1 # Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
2 # Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
4 # This file is part of Guix.
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.
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.
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/>.
28 guix/derivations.scm \
30 guix/build-system.scm \
31 guix/build-system/gnu.scm \
32 guix/build-system/trivial.scm \
36 guix/build/download.scm \
37 guix/build/gnu-build-system.scm \
38 guix/build/utils.scm \
39 guix/build/union.scm \
44 distro/packages/autotools.scm \
45 distro/packages/base.scm \
46 distro/packages/bash.scm \
47 distro/packages/bdw-gc.scm \
48 distro/packages/bison.scm \
49 distro/packages/bootstrap.scm \
50 distro/packages/compression.scm \
51 distro/packages/cpio.scm \
52 distro/packages/ddrescue.scm \
53 distro/packages/ed.scm \
54 distro/packages/flex.scm \
55 distro/packages/gawk.scm \
56 distro/packages/gdbm.scm \
57 distro/packages/gettext.scm \
58 distro/packages/gnupg.scm \
59 distro/packages/gnutls.scm \
60 distro/packages/gperf.scm \
61 distro/packages/guile.scm \
62 distro/packages/help2man.scm \
63 distro/packages/ld-wrapper.scm \
64 distro/packages/less.scm \
65 distro/packages/libffi.scm \
66 distro/packages/libsigsegv.scm \
67 distro/packages/libunistring.scm \
68 distro/packages/linux.scm \
69 distro/packages/lout.scm \
70 distro/packages/lsh.scm \
71 distro/packages/m4.scm \
72 distro/packages/make-bootstrap.scm \
73 distro/packages/multiprecision.scm \
74 distro/packages/nano.scm \
75 distro/packages/ncurses.scm \
76 distro/packages/nettle.scm \
77 distro/packages/perl.scm \
78 distro/packages/pkg-config.scm \
79 distro/packages/pth.scm \
80 distro/packages/readline.scm \
81 distro/packages/recutils.scm \
82 distro/packages/shishi.scm \
83 distro/packages/system.scm \
84 distro/packages/texinfo.scm \
85 distro/packages/time.scm \
86 distro/packages/wget.scm \
87 distro/packages/which.scm \
88 distro/packages/zile.scm
91 GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
93 nobase_dist_guilemodule_DATA = $(MODULES)
95 patchdir = $(guilemoduledir)/distro/packages/patches
97 distro/packages/patches/binutils-ld-new-dtags.patch \
98 distro/packages/patches/cpio-gets-undeclared.patch \
99 distro/packages/patches/diffutils-gets-undeclared.patch \
100 distro/packages/patches/flex-bison-tests.patch \
101 distro/packages/patches/gettext-gets-undeclared.patch \
102 distro/packages/patches/glibc-no-ld-so-cache.patch \
103 distro/packages/patches/guile-1.8-cpp-4.5.patch \
104 distro/packages/patches/guile-default-utf8.patch \
105 distro/packages/patches/guile-relocatable.patch \
106 distro/packages/patches/libtool-skip-tests.patch \
107 distro/packages/patches/lsh-guile-compat.patch \
108 distro/packages/patches/lsh-no-root-login.patch \
109 distro/packages/patches/lsh-pam-service-name.patch \
110 distro/packages/patches/m4-gets-undeclared.patch \
111 distro/packages/patches/m4-readlink-EINVAL.patch \
112 distro/packages/patches/m4-s_isdir.patch \
113 distro/packages/patches/make-impure-dirs.patch \
114 distro/packages/patches/findutils-absolute-paths.patch \
115 distro/packages/patches/perl-no-sys-dirs.patch \
116 distro/packages/patches/readline-link-ncurses.patch \
117 distro/packages/patches/shishi-gets-undeclared.patch \
118 distro/packages/patches/tar-gets-undeclared.patch
120 bootstrapdir = $(guilemoduledir)/distro/packages/bootstrap
121 bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
122 bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
124 dist_bootstrap_x86_64_linux_DATA = \
125 distro/packages/bootstrap/x86_64-linux/bash \
126 distro/packages/bootstrap/x86_64-linux/mkdir \
127 distro/packages/bootstrap/x86_64-linux/tar \
128 distro/packages/bootstrap/x86_64-linux/xz
130 dist_bootstrap_i686_linux_DATA = \
131 distro/packages/bootstrap/i686-linux/bash \
132 distro/packages/bootstrap/i686-linux/mkdir \
133 distro/packages/bootstrap/i686-linux/tar \
134 distro/packages/bootstrap/i686-linux/xz
136 # Big bootstrap binaries are not included in the tarball. Instead, they
138 nodist_bootstrap_x86_64_linux_DATA = \
139 distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz
140 nodist_bootstrap_i686_linux_DATA = \
141 distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz
143 # Those files must remain executable, so they remain executable once
144 # imported into the store.
146 chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
149 $(nodist_bootstrap_x86_64_linux_DATA) \
150 $(nodist_bootstrap_i686_linux_DATA)
152 # Method to download a file from an external source.
154 GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
155 $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
156 "$(top_srcdir)/build-aux/download.scm"
158 distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz:
159 $(MKDIR_P) `dirname "$@"`
160 $(DOWNLOAD_FILE) "$@" "0467a82cbe4136f60a79eb4176011bf88cf28ea19c9ad9defa365811ff8e11cf"
161 distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz:
162 $(MKDIR_P) `dirname "$@"`
163 $(DOWNLOAD_FILE) "$@" "93b537766dfab3ad287143523751e3ec02dd32d3ccaf88ad2d31c63158f342ee"
165 nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
170 tests/derivations.scm \
172 tests/build-utils.scm \
176 tests/guix-build.sh \
177 tests/guix-download.sh \
178 tests/guix-package.sh
180 TEST_EXTENSIONS = .scm .sh
182 AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
184 SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE)
185 AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
187 SH_LOG_COMPILER = $(top_builddir)/pre-inst-env $(SHELL)
188 AM_SH_LOG_FLAGS = -x -e
196 build-aux/download.scm \
198 srfi/srfi-64.upstream.scm \
200 build-aux/config.rpath \
205 CLEANFILES = $(GOBJECTS) *.log
208 $(MKDIR_P) `dirname "$@"`
209 $(top_builddir)/pre-inst-env \
210 $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
211 -Wformat -Wunbound-variable -Warity-mismatch \
217 # Make sure source files are installed first, so that the mtime of
218 # installed compiled files is greater than that of installed source
220 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
222 guix_install_go_files = install-nobase_nodist_guilemoduleDATA
223 $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
227 info_TEXINFOS = doc/guix.texi
228 EXTRA_DIST += doc/fdl-1.3.texi
236 ACLOCAL_AMFLAGS = -I m4
237 AM_DISTCHECK_CONFIGURE_FLAGS = \
238 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
239 --with-nix-prefix="$(NIX_PREFIX)"